Éric Araujo <mer...@netwok.org> added the comment:

I remember seeing code needed to make a decorator that works with and without 
parens and finding it quite obscure and confusing for a long time.  When you 
understand the distinction between, things become clear and simple again.  I 
like that the stdlib keeps that distinction.

We could change the doc to include an example without parameters.
We may also make sure to call lru_cache a decorator factory, with a glossary 
link or link to decorator reference doc.

----------
nosy: +eric.araujo

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to