Message 292289 - Python tracker

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.

Content
Also, the ifilter() suggestion is a complete non-starter.  There is no way to know in advance whether filter will return all the elements of the input or none of them.  In the absence of other knowledge, the best strategy is what list.append() already does (a strategy of mild over-allocations, not exceeding 12.5% for large lists).