1 > 0 == True -> False

Chris Angelico rosuav at gmail.com
Thu Jan 30 16:31:56 EST 2014


On Fri, Jan 31, 2014 at 8:17 AM, Ian Kelly <ian.g.kelly 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?
>
> Lack of a convincing use case, and the position of the following arguments
> would then be dependent upon the length of the tuple, which in many cases
> could result in subtle bugs.

Okay. Just seemed an odd restriction; I can unpack an iterable into a
function's args (great!), I can have other args before that tuple
(handy!), but I can't have any after.

ChrisA



More information about the Python-list mailing list