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-April/043882.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 colonPeter Norvig pnorvig at google.com
Thu Apr 1 00:00:55 EST 2004
I have to say I favor the "last before colon" approach, but if it has
to be before the def, then I think it should have a keyword, and if
you don't want to introduce a new keyword, then it looks like "is" is
the only reasonable candidate.  And if you do have a keyword, you
don't need the square brackets.  So you have

is: classmethod
def f(x): 
    pass


is: author("Guido"), signature(int, result=None)
def g(x):
    pass

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