Skip to content

odicti moves existing keys when new values are assigned. #2

@lmeyn

Description

@lmeyn

The following worked fine under version 0.6.0, now existing keys get moved when new values are assigned.

Python 3.7.1 (default, Dec 14 2018, 13:28:58)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.

from pydicti import odicti
od = odicti(one=1, two=2, three=3)
print(od.keys())
odict_keys(['one', 'two', 'three'])
od['one'] = 1.0
print(od.keys())
odict_keys(['two', 'three', 'one'])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions