[Python-Dev] PEP 318 - generality of list;
restrictions on elements
Guido van Rossum
guido at python.org
Mon Mar 8 16:43:12 EST 2004
> I agree. FWIW, I think the list of things inside the square brackets
> should be simple identifiers, i.e. the names of callables that have been
> defined elsewhere. I'd prefer to keep them simple, meaning no lambdas
> or list comprehensions. But that's just me.
Actually, allowing things that look like function calls here would be
very useful, e.g. to set C#-like attributes. (Or so a little birdie
tells me.)
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev
mailing list