Nick Coghlan <ncogh...@gmail.com> added the comment:

Sorry, I meant to include this comment as well:

The other filter I applied here was "Could someone figure out the boilerplate 
code themselves in less time than it would take them to find, read, and 
understand the documentation for the new helper function?"

I'm not sure the answer to that question is "Yes" when writing a decorator 
factory for the first time, but I am confident it is "Yes" when reading a 
decorator factory, and for anyone writing their second and subsequent factory 
(especially if they use the "def factory(decorated=None, /, *, keyword="only", 
params=True)" idiom the way dataclass and _tp_cache do).

----------

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

Reply via email to