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/043813.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 colonAndrew Koenig ark-mlist at att.net
Wed Mar 31 13:09:56 EST 2004
If you spell decorators this way:

	[decorator]
	def func():
		pass

then what will happen when you type [decorator] at an interactive
interpreter prompt?

	>>> [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?

If it types ... and waits for you to say more, will do so for any list?  Or
will it somehow figure out which lists represent decorators?


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