[issue17338] Add length_hint parameter to list, dict, set constructors to allow efficient presizing

Alex Gaynor report at bugs.python.org
Sun Mar 3 11:31:12 CET 2013


Alex Gaynor added the comment:

That strategy only works if you know the exact count, it fails if you only have an estimate (as __length_hint__ gives you).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17338>
_______________________________________


More information about the Python-bugs-list mailing list