November 15th, 2003, 12:41 PM
Python is actually pretty efficent at converting tuples to lists and back again.. not to mention it being very easy!
I'm sure you've seen (if not used used) the str() type-cast function before, well same thing here with list()..
>>> t = ('my', 'name', 'is', 'mr', 'tuple')
('my', 'name', 'is', 'mr', 'tuple')
>>> l = list(t)
['my', 'name', 'is', 'mr', 'tuple']
programming language development: www.netytan.com – Hula