Serhiy Storchaka added the comment:

This unlikely will be useful. C code uses __length_hint__ because C code is 
fast enough and fill time can be comparable to resize time. But Python code 
will be one or two order slower and resize time is insignificant fraction of 
total time for any real code. You can implement your proposition and do the 
tests, and I doubt that they will show impressive results.

----------
nosy: +serhiy.storchaka

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

Reply via email to