Hello all,
Please I need help figuring out this permutation.
I have a dict like this:
x = "{'pk': 1L, 'model': 'trans', 'fields': {'updated': 2011, 'tel':
3456}", "{'pk': 2L, 'model': 'trans2', 'fields': {'updated': 2011, 'tel':
34510}";
#loop through and get the keys of each
for k,v in x:
keys = dict(x).keys()
print keys
I get ValueError: too many values to unpack
Any help will be much appreciated.
Regards
--
Odeyemi 'Kayode O.
http://www.sinati.com. t: @charyorde
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor