A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-March/086710.html below:

[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement

[Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncement [Python-Dev] PEP 372 -- Adding an ordered directory to collections ready for pronouncementLie Ryan lie.1296 at gmail.com
Wed Mar 4 13:37:11 CET 2009
Steve Holden wrote:
> Raymond Hettinger wrote:
>>>> Perhaps the terminology should be
>>>>
>>>>   ordereddict -- what we have here
>>>>
>>>>   sorteddict -- hypothetical future type that keeps
>>>>                 itself sorted in key order
>> +1
>>
>>
>>> FIFOdict ?  Yeah, that blows the capitalization scheme, way, way out.
>> Issues:
>> * 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
>> unchanged.
>>
>> 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 ;-)
>>
> historydict?

agedict?

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4