[Python-Dev] Re: new syntax for wrapping (PEP 318)

Barry Warsaw barry at python.org
Wed Feb 25 21:23:31 EST 2004

On Wed, 2004-02-25 at 18:57, Andrew Bennetts wrote:

> Exactly -- this is why a keyword isn't need, the decorator is the "keyword".

Excellent point.

The other thing about using square brackets syntactically is that they
allow for multiple line constructs without resorting to backslashes.

def foo(a, b, c) [firstdecorator,


def foo(a, b, c) as firstdecorator, \
                        seconddecorator, \


More information about the Python-Dev mailing list