[issue4793] Glossary incorrectly describes a decorator as "merely syntactic sugar"

Benjamin Peterson report at bugs.python.org
Wed Dec 31 23:34:05 CET 2008


Benjamin Peterson <benjamin at python.org> added the comment:

On Wed, Dec 31, 2008 at 3:17 PM, Lenard Lindstrom
<report at bugs.python.org> wrote:
>
> However, the issue is one of definitions. Is the phrase "merely
> syntactic sugar" misleading? In this case it makes promises that may not
> be kept.

It's not misleading because in 99.99% of all cases (and 100% of all
reasonable ones), they are the same. In fact, I would classify the
fact that the function hasn't been assigned yet a implementation
detail.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4793>
_______________________________________


More information about the Python-bugs-list mailing list