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

[Python-Dev] PEP 318 - generality of list; restrictions on elements

[Python-Dev] PEP 318 - generality of list; restrictions on elements [Python-Dev] PEP 318 - generality of list; restrictions on elementsGuido van Rossum guido at python.org
Wed Mar 10 11:56:04 EST 2004
> That still leaves the question for what *is* allowed within the
> brackets.  AFAICT, the options are
> 
> * A single identifier (which must be a callable)
> 
> * Comma-separated list of identifiers (which must be callables)
> 
> * Arbitrary expression (which must produce a sequence of callables)

The latter.  I previously mentioned a use case for allowing a function
call (or class constructor) here.

> BTW, have we agreed on the order in which decorators will be applied?

I think I've said in the past left-to-right, but since we're talking
function application here, right-to-left might also work.  And it's
also possible that decorators are (by convention) commutative, making
it a wash.  It's a concern that there's no clear reason to prefer one
order!  We'll have to come up with some use cases.

--Guido van Rossum (home page: http://www.python.org/~guido/)

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