copying a tuple to a list..

Scott David Daniels scott.daniels at acm.org
Mon Mar 6 14:10:26 EST 2006


sergio at village-buzz.com wrote:
> i have a result tuple from a MySQLdb call that would like to change in
> place..

What you probably want:
     source = (1, 2, 'three')
     wanted = list(source)

--Scott David Daniels
scott.daniels at acm.org



More information about the Python-list mailing list