The unpacking doesn't work because it needs a tuple to perform the unpacking process.
Example: a, b = ('1','2') print a, b this returns: 1 2 For your example you would need to use the items method of a dictionary which returns a list with tuple representations of each key, value in the dictionary so the code looks like: import decimal tst = {'myTst': (decimal.Decimal, 0)} for k, v in tst.items(): print k,v happy coding :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---