converting tuple to list

Edward Welbourne eddyw at lsls4p.lsl
Wed Jan 12 10:22:26 EST 2000


There are built-ins for this: 

list(sequence) -> yields a list with the same entries as sequence
tuple(sequence) -> yields a tuple, likewise

and map(lambda x: x, sequence) is fine for list (I can believe map would
use this lambda, the identify-function, if given None)

	Eddy.




More information about the Python-list mailing list