#3964: SortedDict string representation not in order of keys ---------------------------------------+------------------------------------ Reporter: [EMAIL PROTECTED] | Owner: jacob Status: new | Component: Uncategorized Version: SVN | Keywords: SortedDict __repr__ repr Stage: Unreviewed | Has_patch: 1 ---------------------------------------+------------------------------------ This is more-or-less a problem with Python's dict implementation, IMO. It's really nothing more than a convenience thing, but for SortedDict, repr(d) doesn't indicate the proper key order. It seems that the standard dict.repr does not iterate over the dict like I would expect it to. Attached is a patch that re-implements __repr__ using an iterator over the object. Thus, SortedDict's are displayed properly in the Python shell.
-- Ticket URL: <http://code.djangoproject.com/ticket/3964> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
