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-August/047184.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 @decorators"Martin v. Löwis" martin at v.loewis.de
Fri Aug 6 20:25:28 CEST 2004
Christian Tismer wrote:
> the primary purpose of all the decorator syntax effort
> is to get the
> 
> foo = classmethod(foo)
> 
> into the right place, not after but before the definition.
> 
> Dunno if this was mentioned before, but why not simply do that?
> Move the statement right before the def and provide a way
> that this gets recognized correctly.
> 
> No syntax change, just the convenience people asked for.

I don't think this can work. How precisely would you implement
it? Python traditionally executes source code from top to bottom,
except for loops.

Regards,
Martin
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