PEP318 alternate syntax idea

Ville Vainio ville at
Tue Mar 23 11:08:01 CET 2004

>>>>> "Stephen" == Stephen Horne <steve at> writes:

    Stephen> It just occurred to me that if decorators really catch
    Stephen> on, there could be cases where they are applied
    Stephen> repeatedly to many functions, and possibly with many
    Stephen> decorators. Combine that with many (and variable numbers
    Stephen> of) parameters per function and readability could be
    Stephen> seriously hit.

d = publishdecorator

def f() [d]:

def g() [d]:

d = hidedecorator

def f2() [d]:

def g2() [d]:

Ville Vainio

More information about the Python-list mailing list