[issue14373] C implementation of functools.lru_cache

Serhiy Storchaka report at bugs.python.org
Sun May 24 15:18:47 CEST 2015


Serhiy Storchaka added the comment:

The problem is in property descriptor getter. It uses cached tuple for args and can unexpectedly modify it. Opened issue24276 for fixing this bug.

Another way is to remove fast path in lru_cache_make_key() and always copy args tuple.

----------
Added file: http://bugs.python.org/file39483/clru_cache_4.patch

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


More information about the Python-bugs-list mailing list