[issue28991] Fix obscure lru_cache reentrancy bug

Serhiy Storchaka report at bugs.python.org
Fri Dec 16 14:10:44 EST 2016


Serhiy Storchaka added the comment:

Wrapping len() in an lru_cache is bad idea, because this brakes len() of lists, dicts and other non-hashable collections.

Should we support this doubtful case?

----------

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


More information about the Python-bugs-list mailing list