copying a tuple to a list..

Ed Leafe ed at leafe.com
Mon Mar 6 12:59:18 EST 2006


On Mar 6, 2006, at 12:42 PM, sergio at village-buzz.com wrote:

> i have a result tuple from a MySQLdb call that would like to change in
> place..
>
> i would like to copy it to a list, so i can modify it in place, but i
> cannot figure out how to do it.
>
> the result typle is
>
> dataResults

	dataList = list(dataResults)


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com






More information about the Python-list mailing list