New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:
Follow the lead of the dataclasses module and allow lru_cache() to be used as a straight decorator rather than as a function that returns a decorator. Both of these would now be supported: @lru_cache def f(x): ... @lru_cache(maxsize=256) def f(x): ... ---------- components: Library (Lib) messages: 341239 nosy: eric.smith, rhettinger, serhiy.storchaka priority: normal severity: normal status: open title: Let lru_cache be used as a decorator with no arguments type: behavior versions: Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36772> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com