get a list from a string

simon kagwe simonkagwe at yahoo.com
Thu Jun 7 07:06:54 EDT 2007


> exec("distances = [[1,1,1,1],[2,2,2,2]]")
Wow! So simple!

Thanks a lot. :-)







More information about the Python-list mailing list