[issue36772] Let lru_cache be used as a decorator with no arguments

Serhiy Storchaka report at bugs.python.org
Thu May 2 00:36:15 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I do not like mixing decorators and decorator fabrics. But this can of worms has already been open by dataclasses. The question is whether we want to extend this design to the rest of the stdlib. lru_cache() resisted this change for a long time.

----------
nosy: +gvanrossum

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36772>
_______________________________________


More information about the Python-bugs-list mailing list