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

elements ([original](http://mail.python.org/pipermail/python-dev/2004-March/042955.html)) ([raw](?raw))

Skip Montanaro skip at pobox.com
Mon Mar 8 15:05:12 EST 2004


>> What are the restrictions on list items?
>> 
>> Only a function?
>> Only a code object?  (I assume so)
>> Must the code return the original function?
>> Must the code return a code object?

Phillip> Any callable object.  May return anything.

Must take a single argument, which itself must be a callable, right?

Skip



More information about the Python-Dev mailing list