copying a tuple to a list..
sybrenUSE at YOURthirdtower.com.imagination
Mon Mar 6 19:27:35 CET 2006
sergio at village-buzz.com enlightened us with:
> i have a result tuple from a MySQLdb call that would like to change in
> 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)
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
More information about the Python-list