Meta decorator with parameters, defined in explicit functions
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Sat Jul 2 02:40:02 EDT 2016
On Saturday, July 2, 2016 at 5:10:06 PM UTC+12, Ian wrote:
> You should use functools.wraps instead of clobbering the decorated
> function's name and docstring:
Where am I doing that?
> Just to satisfy my own curiosity, do you have something against
> putting the return keyword and the returned expression on the same
> line?
Yes.
More information about the Python-list
mailing list