[Python-3000] removing destructuring del

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 22 21:08:14 CET 2008


Alexander Belopolsky wrote:
> I was always wondering why both lists and tuples are allowed as
> assignment targets.

I seem to remember a very early version of Python when you had
to use the list form for unpacking lists and the tuple form for
unpacking tuples, and you'd be told off for using the wrong one.

That was quickly seen to be a silly idea, but both syntaxes
were kept for compatibility.

--
Greg


More information about the Python-3000 mailing list