This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Julian.Gindi, Tim.Graham, berker.peksag, bignose, brett.cannon,, eric.snow, ezio.melotti, ncoghlan, python-dev, rhettinger, serhiy.storchaka
Date 2017-10-25.13:04:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:37serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, rhettinger, ncoghlan, ezio.melotti, bignose, python-dev, eric.snow, berker.peksag, Julian.Gindi,, Tim.Graham
2017-10-25 13:04:37serhiy.storchakasetmessageid: <>
2017-10-25 13:04:37serhiy.storchakalinkissue21720 messages
2017-10-25 13:04:36serhiy.storchakacreate