Lists and Tuples

Roy Smith roy at panix.com
Fri Dec 5 20:05:40 CET 2003


In article <mailman.156.1070649828.16879.python-list at python.org>,
 "Michael T. Babcock" <mbabcock at fibrespeed.net> wrote:

> PS, you can turn a tuple into a list quickly with list compressions;
> 
> list = [ x for x in tuple ]

What's wrong with the even simplier:

aList = list (aTuple)




More information about the Python-list mailing list