[issue44003] functools.lru_cache omits __defaults__ attribute from wrapped function
Gregory P. Smith
report at bugs.python.org
Sat May 1 20:34:51 EDT 2021
Gregory P. Smith <greg at krypto.org> added the comment:
An inner function can't know if somebody else might want to inspect it.
This is a decorator that does not change anything about the argument signature of the wrapped function, carrying over the reference to meta-information about that by default seems to make sense.
----------
versions: +Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44003>
_______________________________________
More information about the Python-bugs-list
mailing list