Message304984
There are other differences between Python 2.7 and Python 3. PR 4118 restores the Python 2.7 logic. It adds type checking, but its overhead is smaller.
$ ./python -m timeit 'from encodings import aliases'
500000 loops, best of 5: 542 nsec per loop
Actually in some cases (with '*') the new code is even slightly faster.
I don't know whether these differences were intentional, but all tests are passed.
The type of items in __all__ also is checked. |
|
Date |
User |
Action |
Args |
2017-10-25 13:04:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, rhettinger, ncoghlan, ezio.melotti, bignose, python-dev, eric.snow, berker.peksag, Julian.Gindi, davidszotten@gmail.com, Tim.Graham |
2017-10-25 13:04:37 | serhiy.storchaka | set | messageid: <1508936677.07.0.213398074469.issue21720@psf.upfronthosting.co.za> |
2017-10-25 13:04:37 | serhiy.storchaka | link | issue21720 messages |
2017-10-25 13:04:36 | serhiy.storchaka | create | |
|