[Python-Dev] Re: PEP 318 - generality of list;
restrictions on elements
Terry Reedy
tjreedy at udel.edu
Mon Mar 8 17:34:26 EST 2004
"Jeff Epler" <jepler at unpythonic.net> wrote in message
news:20040308212953.GE12662 at unpythonic.net...
> In the suggested syntaxes, the modifiers are not a list. There's no
> list here:
> >>> def f() [wrapper]: pass
> just like there's no tuple* in either of these (or the above):
> >>> def f(x, y): pass
> >>> class C(A, B): pass
> and you can't just say
> >>> s1 = (x, y)
> >>> def f s1: pass
> or
> >>> s2 = (A, B)
> >>> class C s2: pass
There is also no tuple here: print a,b,c, (nor any rotation in print >>
fff).
tjr
More information about the Python-Dev
mailing list