new to python - please help
Owen Stevens
owen_stevens at hotmail.com
Tue Mar 12 12:32:08 EST 2002
(apologies for last post)
i made a dictionary (mydict) with the following structure:
mykey=(list1:list2)
i overwrote list1 inside the dictionary with a new list
templist1=[mydict[mykey][0]
templist.append(new_values)
mydict[mykey]=(templist,templist2)
i then tried to retrieve list1
for i in mydict[mykey][0]:
print i
it comes out like this:
[[[[[['value1'], "['value2']"], "['value3']"], "['value4']"],
"['value5']"], "['value6']"]['value7']
which is pretty useless, as len[list1] returns 2 instead of 7
can anyone point me in the right direction?
More information about the Python-list
mailing list