On 2012-01-12, at 11:47 , Daniel Roseman wrote: > However I'm confused by your initial description. What you show is not a > dict at all, but a list of 2-tuples (each containing a string and a list). > Is that a single value of the dict, or what?
I'm guessing it's the initialization vector for the dict, though I'm not sure why he used this for a non-ordered dict. >>> dict([(1, [2, 3]), (5, [6, 7, 8])]) {1: [2, 3], 5: [6, 7, 8]} >>> collections.defaultdict(lambda: [], [(1, [2, 3]), (5, [6, 7, 8])]) defaultdict(<function <lambda> at 0x1004ce488>, {1: [2, 3], 5: [6, 7, 8]}) -- 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.