mirror of https://github.com/jab/bidict.git
4d906b6eca
- Use __slots__ to speed up attribute access and decrease memory usage (adding _SlotPickleMixin to preserve pickleability) - "Code review nav" comments - Remove _clear from frozenbidict, leaving only the public `clear` methods on the mutable bidict types. Much clearer now! (ducks) - Improve `pop` and `popitem` signatures. No need for them to take *args/**kw. - Make bidict extend MutableMapping directly rather than registering it as a virtual subclass. Leave a comment explaining that it inherits MutableMapping's setdefault implementation now that it isn't added manually. - Make the DuplicationPolicy class just a namespace holding RAISE, OVERWRITE, and IGNORE, not a _Marker itself. Make RAISE, OVERWRITE, and IGNORE just _Markers, not `DuplicationPolicy`s. - Various other code and docs improvements. |
||
---|---|---|
.. | ||
__init__.py | ||
test_benchmark.py | ||
test_bidict.txt | ||
test_eq_and_hash.py | ||
test_frozenbidict.txt | ||
test_hypothesis.py | ||
test_inverted.txt | ||
test_metadata.py | ||
test_namedbidict.txt | ||
test_orderedbidict.txt | ||
test_pairs.txt | ||
test_subclasshook.py |