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/044065.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 colonShane Hathaway shane at zope.com
Mon Apr 5 11:50:57 EDT 2004
Mark Russell wrote:
> What about:
> 
> 	[as classmethod]
> 	def foo(bar, baz):
> 	    pass
> 
> To me this is more obvious (and less like p*rl) that *[classmethod], and
> it is also currently a syntax error so won't break existing code.

I agree, it's nice.  You could even use this syntax at the interactive 
prompt.  The "is" keyword is another choice, too.

Shane

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