Raymond Hettinger added the comment:

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).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26828>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to