question about subclassing dict

Delaney, Timothy tdelaney at avaya.com
Mon Feb 4 20:52:37 EST 2002


> From: Russell E. Owen 
> 
> I'm writing a subclass of dict (OrderedDict, keeps items in the order 
> entered; you can get it from http://www.astro.washington.edu/owen/ if 
> interested.).

I would prefer to call this a "ChonologicalDict" or "ChronoDict" to better
describe the order that it stores things.

"OrderedDict" implies that the objects will come out in the order that you
would get by calling sort() on a list.

Cheers.

Tim Delaney




More information about the Python-list mailing list