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-August/047127.html below:

[Python-Dev] Re: Call for defense of @decorators

[Python-Dev] Re: Call for defense of @decorators [Python-Dev] Re: Call for defense of @decoratorsPhillip J. Eby pje at telecommunity.com
Fri Aug 6 17:21:45 CEST 2004
At 10:22 AM 8/6/04 +0100, Mark Russell wrote:
>On Fri, 2004-08-06 at 03:46, Andrew Durdin wrote:
> > 8. When using multiple decorators, each appears on a separate line.
>
>No, you can put multiple decorators on a single line -- you just need a
>newline before the def.  From test_decorators.py:
>
>         class C(object):
>             @funcattrs(abc=1) @staticmethod
>             def foo(): return 42
>
>Probably not good style (but neither is "if cond: stmt" I guess).

*shudder*

Can we change this?  The positive benefits that the @ syntax *does* have, 
seem completely  lost by doing this.

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