[Python-Dev] PEP 318 - generality of list;
restrictions on elements
Fred L. Drake, Jr.
fdrake at acm.org
Mon Mar 8 15:14:26 EST 2004
On Monday 08 March 2004 03:05 pm, Skip Montanaro wrote:
> Must take a single argument, which itself must be a callable, right?
If I write:
def foo() [w1, w2]:
pass
I'd expect w2() to be passed whatever w1() returns, regardless of whether it's
callable. It should raise an exception if it gets something it can't handle.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Python-Dev
mailing list