1 > 0 == True -> False
Rotwang
sg552 at hotmail.co.uk
Thu Jan 30 19:10:07 EST 2014
On 30/01/2014 23:36, Joshua Landau wrote:
> On 30 January 2014 20:38, Chris Angelico <rosuav at gmail.com> wrote:
>>
>> Why is tuple unpacking limited to the last argument? Is it just for
>> the parallel with the function definition, where anything following it
>> is keyword-only?
>
> You're not the first person to ask that:
> http://www.python.org/dev/peps/pep-0448/
On a vaguely-related note, does anyone know why iterable unpacking in
calls was removed in Python 3? I mean things like
def f(x, (y, z)):
return (x, y), z
I don't have a use case in mind, I was just wondering.
More information about the Python-list
mailing list