A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-February/042734.html below:

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

[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,
                     seconddecorator,
                     thirddecorator]:

vs.

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

-Barry



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4