[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

Serhiy Storchaka report at bugs.python.org
Thu May 9 05:06:57 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

We can return to this issue if make the invocation of __length_hint__ much much faster. For example by adding the tp_length_hint slot. But currently it is too large change and his has negative effects.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36551>
_______________________________________


More information about the Python-bugs-list mailing list