[issue4793] Glossary incorrectly describes a decorator as "merely syntactic sugar"
Benjamin Peterson
report at bugs.python.org
Wed Dec 31 20:55:44 CET 2008
Benjamin Peterson <benjamin at python.org> added the comment:
It is possible to "desugar" the exact behavior by creating the function
ones self.
Regardless, the usefulness this behavior is limited because it relys on
the decorator being in the same module as the function. It is also
fragile for nested functions.
----------
nosy: +benjamin.peterson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4793>
_______________________________________
More information about the Python-bugs-list
mailing list