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 anthony shaw
Recipients Aaron Hall, anthony shaw, methane, ncoghlan, ronaldoussoren, serhiy.storchaka
Date 2019-04-08.12:16:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554725774.25.0.962947689983.issue36551@roundup.psfhosted.org>
In-reply-to
Content
> If your patch uses __length_hint__, it is bug.

I’m not sure I understand this comment,

PEP424 says “This is useful for presizing containers when building from an iterable.“

This patch uses __length_hint__ to presize the list container for a list comprehension.
History
Date User Action Args
2019-04-08 12:16:14anthony shawsetrecipients: + anthony shaw, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall
2019-04-08 12:16:14anthony shawsetmessageid: <1554725774.25.0.962947689983.issue36551@roundup.psfhosted.org>
2019-04-08 12:16:14anthony shawlinkissue36551 messages
2019-04-08 12:16:14anthony shawcreate