[Python-Dev] Decorator syntax proposal

Wiktor Sadowski art at wiktorsadowski.com
Fri Aug 6 02:52:19 CEST 2004


FWIW:

[def][decorateMethod1(param)]
[def][decorateMethod2(param)]
def method(self,param):
        pass

or all in one line

[def][decorateFunc1(param)][decorateFunc2(param)]
def func(param):
        pass


[class][decorateClass(param)]
class toBeDecorated:
    pass

import hooks

[import][modify(mod)]
import foo

Regards
Wiktor Sadowski


More information about the Python-Dev mailing list