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
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to