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 pablogsal
Recipients pablogsal, rhettinger, serhiy.storchaka, vstinner
Date 2018-04-30.22:22:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
@serhiy.storchaka @rhettinger @vstinner Should we better make the pre-allocation if the length of the iterable is known (so we call PyObject_Length and not PyObject_LengthHint)? This will keep the logic simpler (so not shrinking if PyObject_LengthHint gives more than the real length) and it will not be as expensive as calling PyObject_LengthHint.
Date User Action Args
2018-04-30 22:22:04pablogsalsetrecipients: + pablogsal, rhettinger, vstinner, serhiy.storchaka
2018-04-30 22:22:04pablogsalsetmessageid: <>
2018-04-30 22:22:04pablogsallinkissue33234 messages
2018-04-30 22:22:04pablogsalcreate