[issue44003] functools.lru_cache omits __defaults__ attribute from wrapped function
Gregory P. Smith
report at bugs.python.org
Sat May 1 20:31:59 EDT 2021
Gregory P. Smith <greg at krypto.org> added the comment:
__defaults__ and __kwdefaults__ get used for code introspection. Just as __annotations__ does. __annotations__ is already available on the lru_cache wrapped function. All of those seem to go together from a runtime inspection point of view.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44003>
_______________________________________
More information about the Python-bugs-list
mailing list