On 4/19/06, Nick Coghlan <[EMAIL PROTECTED]> wrote:
> Then you'd have:
>
> def f(a, *(b, c=1, *args), **(d, e=2, **kwds)):
> # Silly function
>
> 'a' would be a normal positional-or-keyword argument
> 'b' would be a required positional-only argument
Am I reading that correctly?
Looking only at a and b the possible calling signatures are exactly:
f(1, 2)
f(a=1, 2)
because b can't be named but must appear second, and nothing except a
can appear before it because of the rules on positional arguments.
-jJ
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com