[Python-Dev] Proposal: add odict to collections (original) (raw)
Armin Ronacher armin.ronacher at active-4.com
Sun Jun 15 11:39:05 CEST 2008
- Previous message: [Python-Dev] Proposal: add odict to collections
- Next message: [Python-Dev] Proposal: add odict to collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven D'Aprano <steve 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 ;-)
Regards, Armin
- Previous message: [Python-Dev] Proposal: add odict to collections
- Next message: [Python-Dev] Proposal: add odict to collections
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]