The opening line:
>Don’t use Python’s hasattr() unless you want its quirks or are writing Python 3-only code.
At this point, you should be writing Python 3-only code. Maybe I should write a post, "Python 2 considered harmful".
>Don’t use Python’s hasattr() unless you want its quirks or are writing Python 3-only code.
At this point, you should be writing Python 3-only code. Maybe I should write a post, "Python 2 considered harmful".
I love those comment threads.
At this point it should be obvious that Python 2 will never die. It's Good Enough (TM). Most users will never switch to Py3 because cost outweighs the benefits.
There is less and less reason to write code in Python 2. Not many libraries require it.