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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to