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 brett.cannon, eric.snow, ncoghlan, random832, rhettinger, serhiy.storchaka, xiang.zhang
Date 2016-04-21.06:40:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461220824.57.0.867319760136.issue26811@psf.upfronthosting.co.za>
In-reply-to
Content
Ah, yes, 5dbf3d932a59 partially fixed this optimization. Saving None in a tuple (as I believe done in itertools/zip/enumerate optimization) should fix this issue. I agree that the code is too tricky (as well as the code in itertools/zip/enumerate). It would be better to make tuple creation faster instead of adding special caches in separate functions (see also issue23507). But for now this optimization makes attribute access in named tuples 30% faster, and this is good argument for keeping it.
History
Date User Action Args
2016-04-21 06:40:24serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, rhettinger, ncoghlan, eric.snow, random832, xiang.zhang
2016-04-21 06:40:24serhiy.storchakasetmessageid: <1461220824.57.0.867319760136.issue26811@psf.upfronthosting.co.za>
2016-04-21 06:40:24serhiy.storchakalinkissue26811 messages
2016-04-21 06:40:24serhiy.storchakacreate