Author serhiy.storchaka
Recipients Julian.Gindi, Tim.Graham, berker.peksag, bignose, brett.cannon, davidszotten@gmail.com, 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 <1508936677.07.0.213398074469.issue21720@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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, davidszotten@gmail.com, Tim.Graham
2017-10-25 13:04:37serhiy.storchakasetmessageid: <1508936677.07.0.213398074469.issue21720@psf.upfronthosting.co.za>
2017-10-25 13:04:37serhiy.storchakalinkissue21720 messages
2017-10-25 13:04:36serhiy.storchakacreate