Re: SortedDict.__repr__

2007-04-08 Thread Forest Bond
On Sun, Apr 08, 2007 at 12:16:00PM +0800, Russell Keith-Magee wrote: > On 4/7/07, Forest Bond <[EMAIL PROTECTED]> wrote: > > > Attached is a patch that re-implements __repr__ using an iterator over the > > object. Thus, SortedDict's are displayed properly in the Python shell. > > Hi Forest, > >

Re: SortedDict.__repr__

2007-04-07 Thread Russell Keith-Magee
On 4/7/07, Forest Bond <[EMAIL PROTECTED]> wrote: > Attached is a patch that re-implements __repr__ using an iterator over the > object. Thus, SortedDict's are displayed properly in the Python shell. Hi Forest, The best way to make sure this isn't forgotten is to get it into the ticket system

SortedDict.__repr__

2007-04-07 Thread Forest Bond
Hi, 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. Attache