A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/044050.html below:

[Python-Dev] Re: PEP 318: Decorators last before colon

[Python-Dev] Re: PEP 318: Decorators last before colon [Python-Dev] Re: PEP 318: Decorators last before colonMark Russell marktrussell at btopenworld.com
Mon Apr 5 06:54:31 EDT 2004
On Mon, 2004-04-05 at 11:38, David Abrahams wrote:
> Not bad.  Also tolerable:
> 
>   as [classmethod]
>   def foo(bar, baz):
>      pass

The trouble with that is that its less clearly an error at the moment
(e.g.:

    as = [ 'pathological' ]
    classmethod = 0

    as [classmethod]
    def foo(bar, baz):
        pass

is actually legal right now).  The nice thing about "[as xxx]" is that
there's no way you can confuse it with a subscript expression.

Mark

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