Decorator Syntax

Mike Patterson mikepatterson77 at gmail.com
Mon Mar 21 20:59:30 EDT 2011


In my Python class the other day, the professor was going over
decorators and he briefly mentioned that there had been this huge
debate about the syntax and using the @ sign to signify decorators.

I read about the alternative forms proposed here (http://
www.python.org/dev/peps/pep-0318/#syntax-alternatives).

Has anyone thought about just using dec to declare a decorator?

For example:
dec dec2
dec dec1
def func(arg1, arg2, ...):
    pass



More information about the Python-list mailing list