Case Statements
Gregory Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 18 01:59:15 EDT 2016
Chris Angelico wrote:
> So maybe it's a language guarantee that
> hasn't been written down somewhere,
The Language Reference says:
[the decorator] is invoked with the function object as the only argument.
The returned value is bound to the function name instead of the function
object.
The "instead" there seems to imply that the name is *not*
bound to the original function object. But it could perhaps
be made clearer.
--
Greg
More information about the Python-list
mailing list