Hello,<br>
selecting a record from a MySQL database results in a tuple like this:<br>
(('Evelyn', 'Dog', 'No'),)<br>
I want to assign every item of that tuple to a variable using this code (deep_list is taken from the Python Cookbook):<br>
<br>
def deep_list(x):<br>
    if type(x)!=type( () ):<br>
        return x<br>
    return map(deep_list,x)<br>
<br>
mytuple = (('Evelyn', 'Dog', 'No'),)<br>
mylist = deep_list(mytuple)<br>
for item in mylist:<br>
  name, pet, modified = item<br clear="all"><br>
it woks fine, but I wonder if there is a better way to achieve this.<br>
Any suggestions?<br>
<br>
thanks,<br>
Dimitri<br>-- <br>All truth passes through three stages. First, it is
ridiculed. Second, it is violently opposed. Third, it is accepted as
being self-evident.<br>Arthur Schopenhauer <br>-----<br><br>