Decorators not worth the effort
Tim Chase
python.list at tim.thechases.com
Fri Sep 14 09:06:53 EDT 2012
On 09/14/12 07:01, Steven D'Aprano wrote:
> [snip timeout class]
>
> Holy over-engineering Batman!!!
>
> No wonder you don't think much of decorators,
[snip]
> Most of my decorator functions are under a dozen lines. And that's the
> complicated ones!
As are mine, and a sizable chunk of those under-a-dozen-lines are
somewhat boilerplate like using @functools.wraps inside, actual def
of the function, and returning that function. :-)
-tkc
More information about the Python-list
mailing list