mirror of https://github.com/jab/bidict.git
![]() - Refactor _dedup_item, _write_item, and _undo_write methods to use higher-level abstractions (_DedupResult and _WriteResult classes). - Add internal _OnDup class to bundle (on_dup_key, on_dup_val, on_dup_kv) together into a single abstraction. Signatures of methods like _put and _update are cleaner as a result. - Add the "_NOOP" _DedupResult abstraction. - Make _Marker extend namedtuple, no need for it to be mutable. - Enable the pylint messages that were disabled now that the code is cleaner. - Make DuplicationPolicy extend _Marker and make RAISE, OVERWRITE, and IGNORE instances of DuplicationPolicy once again. This time deprecate access via DuplicationPolicy.(IGNORE|RAISE|OVERWRITE) to prevent infinite chaining. - Misc. code and docs improvements. |
||
---|---|---|
.. | ||
Makefile | ||
_static | ||
addendum.rst | ||
api.rst | ||
basic-usage.rst | ||
caveat-equivalent-distinct-hashables.rst.inc | ||
caveat-hashable-values.rst.inc | ||
caveat-mutation.rst.inc | ||
caveat-nan-as-key.rst.inc | ||
changelog.rst | ||
code-of-conduct.rst | ||
conf.py | ||
contributors-guide.rst | ||
extending.rst.inc | ||
frozenbidict.rst.inc | ||
home.rst | ||
index.rst | ||
interop.rst.inc | ||
intro.rst | ||
inv-avoids-reference-cycles.rst.inc | ||
learning-from-bidict.rst | ||
namedbidict.rst.inc | ||
order-matters.rst.inc | ||
orderedbidict.rst.inc | ||
other-bidict-types.rst | ||
other-functionality.rst | ||
overwritingbidict.rst.inc | ||
performance.rst.inc | ||
polymorphism.rst.inc | ||
release-notifications.rst.inc | ||
sortedbidicts.rst.inc | ||
thanks.rst.inc | ||
values-hashable.rst.inc | ||
values-unique.rst.inc |