[issue28649] refleak in typing.py

Yury Selivanov report at bugs.python.org
Thu Nov 10 10:59:08 EST 2016


Yury Selivanov added the comment:

Good work, Ivan!

> Those two seem to fix everything, I tried various cache sizes with both C and Python versions of lru_cache and found no refleaks.

Speaking of lru_cache: typing currently doesn't configure maxsize, which means that the cache is limited to 128 items.  Is that OK?  Should maxsize be set to None to make the cache unlimited, or, maybe, a higher number like 1024 is more appropriate?

----------

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


More information about the Python-bugs-list mailing list