Re: copying a tuple to a list..

2006-03-06 Thread Scott David Daniels
[EMAIL PROTECTED] 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 [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: copying a tuple to a list..

2006-03-06 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > 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. dataResults = (1, 2, 12) dataList = list(dataResults) Sybren -- Th

Re: copying a tuple to a list..

2006-03-06 Thread Ed Leafe
On Mar 6, 2006, at 12:42 PM, [EMAIL PROTECTED] 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 data

copying a tuple to a list..

2006-03-06 Thread [EMAIL PROTECTED]
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 and i thought i could do something like dataList = [] dataList = dataResults b