[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
[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
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
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