"Andrew Koenig" <[EMAIL PROTECTED]> wrote:

> Of course, this usage shows that the syntax is unnecessary in this context,
> but what I care about is
> 
>       def f(x as (a, b)):
>               # ...
> 
> which has the advantage over the alternative
> 
>       def f(x):
>               (a, b) = x
>               # ...
> 
> that if you call f with the wrong arguments, you get a clearer diagnostic
> message.

Thanks to the time machine, you can already do this:

        def f((a, b)):
                # ...

-- 
Christian Tanzer                                    http://www.c-tanzer.at/

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to