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

Aahz aahz at pythoncraft.com
Wed Mar 10 20:36:22 EST 2004


On Thu, Mar 11, 2004, Greg Ewing wrote:
> Aahz <aahz at pythoncraft.com>:
>> 
>> * 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)
> 
> You left out
> 
>   * Comma-separated list of arbitrary expressions
> 
> which is the one I'm in favor of.

If we allow truly arbitrary expressions, that comes for free, by
definition.  ;-)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Do not taunt happy fun for loops. Do not change lists you are looping over."
--Remco Gerlich, comp.lang.python



More information about the Python-Dev mailing list