[a,b,c,d] = 1,2,3,4

Jussi Piitulainen harvested.address at is.invalid
Tue Aug 25 17:57:42 CEST 2015

Skip Montanaro <skip.montanaro at gmail.com> writes:

> On Tue, Aug 25, 2015 at 10:24 AM, Jussi Piitulainen wrote:
>> When I try it today, round brackets also work, both in 2.6.6 and
>> 3.4.0 - no idea what version it was where they failed or if I'm
>> imagining the whole thing.
> You are imagining the whole thing. Either that, or you had some other
> problem with your tuple unpacking which kept it from working. That has
> been a part of the language as far back as I can remember. I started
> using Python around the 1.0 timeframe.

At least they work now, and clearly are intended to work. But I just
checked and I have scripts with backslash-terminated lines where I'm
sure I wanted to use those brackets. Could it have been some sort of
temporary regression? Well, never mind :)

More information about the Python-list mailing list