[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement
steve at holdenweb.com
Wed Mar 4 12:45:46 CET 2009
Raymond Hettinger wrote:
>>> Perhaps the terminology should be
>>> ordereddict -- what we have here
>>> sorteddict -- hypothetical future type that keeps
>>> itself sorted in key order
>> FIFOdict ? Yeah, that blows the capitalization scheme, way, way out.
> * The popitem() method is LIFO.
> * In a non-popping context, there is no OUT. It just stores.
> * FIFO is more suggestive of queue behavior which does not apply here.
> * Stores to existing keys don't go at the end; they leave the order
> FWIW, PEP 372 has links to seven other independent implementations and
> they all have names that are some variant spelling OrderedDict except
> for one which goes by the mysterious name of StableDict.
> Am still +1 on painting the class green with pink polka dots, but I'm
> starting to appreciate why others are insisting on pink with green polka
> dots ;-)
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-Dev