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-March/043842.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 colonDavid Abrahams dave at boost-consulting.com
Wed Mar 31 16:40:44 EST 2004
Guido van Rossum <guido at python.org> writes:

>> 	>>> [decorator]
>> 
>> Will it type ... and wait for you to say more?  Or will it evaluate the
>> single-element list whose element is the value of the variable ``decorator''
>> and print the result?
>
> The latter.  You can't add a decorator to a top-level function in
> interactive mode unless you put it inside an if.

That seems like a very odd special case to me.  Is it worth it?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


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