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/2008-June/080458.html below:

[Python-Dev] Proposal: add odict to collections

[Python-Dev] Proposal: add odict to collections [Python-Dev] Proposal: add odict to collectionsSteven D'Aprano steve at pearwood.info
Mon Jun 16 02:07:17 CEST 2008
On Sun, 15 Jun 2008 07:39:05 pm Armin Ronacher wrote:
> Steven D'Aprano <steve <at> pearwood.info> writes:
> > Conceptually, I would expect the following behaviour:
> > >>> od = odict()
> > >>> od[1] = 'spam'  # insert a new key
> > >>> od[2] = 'parrot'  # insert a new key
> > >>> od[1] = 'ham'  # modify existing key
> > >>> od.items()
> >
> > [(1, 'ham'), (2, 'parrot')]
>
> That behavior is different to any ordered-dict implementation
> out there ;-)

I beg to differ. It's the same behaviour as in this implementation:

http://dev.pocoo.org/hg/sandbox/raw-file/tip/odict.py

which I understand was written by you.



-- 
Steven
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