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-March/042950.html below:

[Python-Dev] (Specific syntax of) PEP 318

[Python-Dev] (Specific syntax of) PEP 318 - function/method/class decorationBarry Warsaw barry at python.org
Mon Mar 8 13:57:12 EST 2004
On Mon, 2004-03-08 at 13:48, Phillip J. Eby wrote:

> The positioning is different, though.  C# puts the bracketed list of 
> "attributes" at the *beginning* of the declarations, so if we were really 
> following C#'s lead, the syntax would actually be:
> 
> class [interface] Foo:
> 
>     def [classmethod] foo(cls):
>         ...

After rewriting a bunch of my existing code to use the various proposed
syntaxes in PEP 318, this is the one I ended up preferring.

But again, I think all the issues, opinions, etc. are covered in the
PEP, so it doesn't make much sense to continue to debate the issue. 
Hopefully Guido will pronounce on it soon.

-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