2016-06-28 04:05:22 +00:00
|
|
|
.. _changelog:
|
|
|
|
|
|
|
|
Changelog
|
|
|
|
=========
|
|
|
|
|
|
|
|
Release Notifications
|
|
|
|
---------------------
|
|
|
|
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
.. image:: https://img.shields.io/badge/VersionEye-follow-brightgreen.svg
|
|
|
|
:target: https://www.versioneye.com/python/bidict
|
|
|
|
:alt: Follow on VersionEye
|
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
`Follow bidict on VersionEye <https://www.versioneye.com/python/bidict>`_
|
|
|
|
to automatically be notified via email
|
|
|
|
when a new version of bidict is released.
|
|
|
|
|
2017-01-19 05:26:21 +00:00
|
|
|
0.13.1.dev0 (not yet released)
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
- Nothing yet.
|
|
|
|
|
2017-01-19 05:08:38 +00:00
|
|
|
0.13.0 (2017-01-19)
|
|
|
|
-------------------
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
|
|
|
|
- Support Python 3.6.
|
|
|
|
|
|
|
|
(Earlier versions of bidict should work fine on 3.6, but it is officially
|
|
|
|
supported starting in this version.)
|
|
|
|
|
|
|
|
- :class:`BidirectionalMapping <bidict.BidirectionalMapping>`
|
|
|
|
has been refactored into an abstract base class,
|
|
|
|
following the way :class:`collections.abc.Mapping` works.
|
|
|
|
The concrete method implementations it used to provide have been moved
|
|
|
|
into a new :class:`BidictBase <bidict.BidictBase>` subclass.
|
|
|
|
|
|
|
|
:class:`BidirectionalMapping <bidict.BidirectionalMapping>`
|
|
|
|
now also implements
|
|
|
|
:attr:`__subclasshook__ <bidict.BidirectionalMapping.__subclasshook__>`,
|
|
|
|
so any class that provides a conforming set of attributes
|
|
|
|
(enumerated in :attr:`_subclsattrs <bidict.BidirectionalMapping._subclsattrs>`)
|
|
|
|
will be considered a
|
|
|
|
:class:`BidirectionalMapping <bidict.BidirectionalMapping>`
|
|
|
|
subclass automatically.
|
|
|
|
|
|
|
|
- ``OrderedBidirectionalMapping`` has been renamed to
|
|
|
|
:class:`OrderedBidictBase <bidict.OrderedBidictBase>`,
|
|
|
|
to better reflect its function.
|
|
|
|
(It is not an ABC.)
|
|
|
|
|
|
|
|
- A new
|
|
|
|
:class:`FrozenBidictBase <bidict.FrozenBidictBase>` class
|
|
|
|
has been factored out of
|
|
|
|
:class:`frozenbidict <bidict.frozenbidict>` and
|
|
|
|
:class:`frozenorderedbidict <bidict.frozenorderedbidict>`.
|
|
|
|
This implements common behavior such as caching the result of
|
|
|
|
:attr:`__hash__ <bidict.FrozenBidictBase.__hash__>`
|
|
|
|
after the first call.
|
|
|
|
|
|
|
|
- The hash implementations of
|
|
|
|
:class:`frozenbidict <bidict.frozenbidict>` and
|
|
|
|
:class:`frozenorderedbidict <bidict.frozenorderedbidict>`.
|
|
|
|
have been reworked to improve performance and flexibility:
|
|
|
|
|
|
|
|
:attr:`frozenorderedbidict's hash implementation
|
|
|
|
<bidict.frozenorderedbidict._compute_hash>` is now order-sensitive.
|
|
|
|
Since ``frozenorderedbidict([(k1, v1), (k2, v2)])`` does not equal
|
|
|
|
``frozenorderedbidict([(k2, v2), (k1, v1)])``,
|
|
|
|
their hashes shouldn't be equal either. Avoids hash collisions when inserting
|
|
|
|
such objects into the same set or mapping.
|
|
|
|
|
|
|
|
See
|
|
|
|
:attr:`frozenbidict._compute_hash <bidict.frozenbidict._compute_hash>` and
|
|
|
|
:attr:`frozenorderedbidict._compute_hash <bidict.frozenorderedbidict._compute_hash>`
|
|
|
|
for more documentation of the changes,
|
|
|
|
including the new
|
|
|
|
:attr:`frozenbidict._USE_ITEMSVIEW_HASH
|
|
|
|
<bidict.frozenbidict._USE_ITEMSVIEW_HASH>` and
|
|
|
|
:attr:`frozenorderedbidict._HASH_NITEMS_MAX
|
|
|
|
<bidict.frozenorderedbidict._HASH_NITEMS_MAX>`
|
|
|
|
attributes.
|
|
|
|
If you have an interesting use case that requires overriding these,
|
|
|
|
or suggestions for an alternative implementation,
|
|
|
|
please `share your feedback <https://gitter.im/jab/bidict>`_.
|
|
|
|
|
|
|
|
- Add :attr:`_fwd_class <bidict.BidictBase._fwd_class>` and
|
|
|
|
:attr:`_inv_class <bidict.BidictBase._inv_class>` attributes
|
|
|
|
representing the backing :class:`Mapping <collections.abc.Mapping>` types
|
|
|
|
used internally to store the forward and inverse dictionaries, respectively.
|
|
|
|
|
|
|
|
This allows creating custom bidict types with extended functionality
|
|
|
|
simply by overriding these attributes in a subclass.
|
|
|
|
|
|
|
|
See the new :ref:`extending` documentation for examples.
|
|
|
|
|
|
|
|
- Pass any parameters passed to :attr:`bidict.popitem <bidict.bidict.popitem>`
|
|
|
|
through to ``_fwd.popitem`` for greater extensibility.
|
|
|
|
|
|
|
|
- More concise repr strings for empty bidicts.
|
|
|
|
|
|
|
|
e.g. ``bidict()`` rather than ``bidict({})`` and
|
|
|
|
``orderedbidict()`` rather than ``orderedbidict([])``.
|
|
|
|
|
|
|
|
- Add :attr:`bidict.compat.PYPY` and
|
|
|
|
remove unused ``bidict.compat.izip_longest``.
|
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
0.12.0 (2016-07-03)
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
- New/renamed exceptions:
|
|
|
|
|
|
|
|
- :class:`KeyDuplicationError <bidict.KeyDuplicationError>`
|
|
|
|
- :class:`ValueDuplicationError <bidict.ValueDuplicationError>`
|
|
|
|
- :class:`KeyAndValueDuplicationError <bidict.KeyAndValueDuplicationError>`
|
|
|
|
- :class:`DuplicationError <bidict.DuplicationError>` (base class for the above)
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
- :func:`put() <bidict.bidict.put>`
|
|
|
|
now accepts ``on_dup_key``, ``on_dup_val``, and ``on_dup_kv`` keyword args
|
|
|
|
which allow you to override the default behavior
|
2016-07-04 03:29:24 +00:00
|
|
|
when the key or value of a given item
|
|
|
|
duplicates that (those) of any existing item(s).
|
2016-06-28 04:05:22 +00:00
|
|
|
These can take the following values:
|
|
|
|
|
|
|
|
- :attr:`bidict.DuplicationBehavior.RAISE`
|
|
|
|
- :attr:`bidict.DuplicationBehavior.OVERWRITE`
|
|
|
|
- :attr:`bidict.DuplicationBehavior.IGNORE`
|
|
|
|
|
|
|
|
``on_dup_kv`` can also take :attr:`bidict.DuplicationBehavior.ON_DUP_VAL`.
|
|
|
|
|
|
|
|
If not provided,
|
|
|
|
:func:`put() <bidict.bidict.put>` uses
|
2016-07-04 03:29:24 +00:00
|
|
|
:attr:`RAISE <bidict.DuplicationBehavior.RAISE>` behavior by default.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
- New :func:`putall() <bidict.bidict.putall>` method
|
2016-07-04 03:29:24 +00:00
|
|
|
provides a bulk :func:`put() <bidict.bidict.put>` API,
|
|
|
|
allowing you to override the default duplication handling behavior
|
|
|
|
that :func:`update() <bidict.bidict.update>` uses.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
- :func:`bidict.update() <bidict.bidict.update>` now fails clean,
|
|
|
|
so if an :func:`update() <bidict.bidict.update>` call raises a
|
|
|
|
:class:`DuplicationError <bidict.DuplicationError>`,
|
|
|
|
you can now be sure that none of the given items was inserted.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
Previously, all of the given items that were processed
|
2016-06-28 04:05:22 +00:00
|
|
|
before the one causing the failure would have been inserted,
|
2016-07-04 03:29:24 +00:00
|
|
|
and no facility was provided to recover
|
|
|
|
which items were inserted and which weren't,
|
|
|
|
nor to revert any changes made by the failed
|
|
|
|
:func:`update() <bidict.bidict.update>` call.
|
2016-06-28 04:05:22 +00:00
|
|
|
The new behavior makes it easier to reason about and control
|
2016-07-04 03:29:24 +00:00
|
|
|
the effects of failed :func:`update() <bidict.bidict.update>` calls.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
The new :func:`putall() <bidict.bidict.putall>` method also fails clean.
|
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
Internally, this is implemented by storing a log of changes
|
|
|
|
made while an update is being processed, and rolling back the changes
|
|
|
|
when one of them is found to cause an error.
|
|
|
|
This required reimplementing :class:`orderedbidict <bidict.orderedbidict>`
|
|
|
|
on top of two dicts and a linked list, rather than two OrderedDicts,
|
|
|
|
since :class:`OrderedDict <collections.OrderedDict>` does not expose
|
|
|
|
its underlying linked list.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
- :func:`orderedbidict.move_to_end() <bidict.orderedbidict.move_to_end>`
|
|
|
|
now works on Python < 3.2 as a result of the new
|
|
|
|
:class:`orderedbidict <bidict.orderedbidict>` implementation.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
- Add
|
|
|
|
|
|
|
|
- :func:`bidict.compat.viewkeys`
|
|
|
|
- :func:`bidict.compat.viewvalues`
|
|
|
|
- :func:`bidict.compat.iterkeys`
|
|
|
|
- :func:`bidict.compat.itervalues`
|
|
|
|
- :func:`bidict.compat.izip`
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
- ``bidict.compat.izip_longest``
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
to complement the existing
|
|
|
|
:func:`iteritems() <bidict.compat.iteritems>` and
|
|
|
|
:func:`viewitems() <bidict.compat.viewitems>`
|
|
|
|
compatibility helpers.
|
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
- More efficient implementations of
|
2016-06-28 04:05:22 +00:00
|
|
|
:func:`pairs() <bidict.util.pairs>`,
|
|
|
|
:func:`inverted() <bidict.util.inverted>`, and
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
:func:`bidict.copy() <bidict.BidictBase.copy>`.
|
2016-06-28 04:05:22 +00:00
|
|
|
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
- Implement :func:`bidict.__copy__() <bidict.BidictBase.__copy__>`
|
2016-06-28 04:05:22 +00:00
|
|
|
for use with the :mod:`copy` module.
|
|
|
|
|
|
|
|
- Fix issue preventing a client class from inheriting from
|
|
|
|
:class:`loosebidict <bidict.loosebidict>`
|
|
|
|
(see `#34 <https://github.com/jab/bidict/issues/34>`_).
|
|
|
|
|
|
|
|
- Add benchmarking to tests.
|
|
|
|
|
|
|
|
- Drop official support for CPython 3.3.
|
|
|
|
(It may continue to work, but is no longer being tested.)
|
|
|
|
|
|
|
|
Breaking API Changes
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2016-07-04 03:29:24 +00:00
|
|
|
- Rename ``KeyExistsException`` to :class:`KeyDuplicationError <bidict.KeyDuplicationError>`
|
|
|
|
and ``ValueExistsException`` to :class:`ValueDuplicationError <bidict.ValueDuplicationError>`.
|
|
|
|
|
|
|
|
- When overwriting the key of an existing value in an :class:`orderedbidict <bidict.orderedbidict>`,
|
|
|
|
the position of the existing item is now preserved,
|
|
|
|
overwriting the key of the existing item in place,
|
|
|
|
rather than moving the item to the end.
|
|
|
|
This now matches the behavior of overwriting the value of an existing key,
|
|
|
|
which has always preserved the position of the existing item.
|
|
|
|
(If inserting an item whose key duplicates that of one existing item
|
|
|
|
and whose value duplicates that of another,
|
|
|
|
the existing item whose value is duplicated is still dropped,
|
|
|
|
and the existing item whose key is duplicated
|
|
|
|
still gets its value overwritten in place, as before.)
|
|
|
|
|
|
|
|
For example::
|
|
|
|
|
|
|
|
>>> from bidict import orderedbidict
|
|
|
|
>>> o = orderedbidict([(0, 1), (2, 3)])
|
|
|
|
>>> o.forceput(4, 1)
|
|
|
|
|
|
|
|
previously would have resulted in::
|
|
|
|
|
|
|
|
>>> o # doctest: +SKIP
|
|
|
|
orderedbidict([(2, 3), (4, 1)])
|
|
|
|
|
|
|
|
but now results in::
|
|
|
|
|
|
|
|
>>> o
|
|
|
|
orderedbidict([(4, 1), (2, 3)])
|
2016-06-28 04:05:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
0.11.0 (2016-02-05)
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
- Add
|
|
|
|
:class:`bidict.orderedbidict`,
|
|
|
|
:class:`bidict.looseorderedbidict`,
|
|
|
|
and
|
|
|
|
:class:`bidict.frozenorderedbidict`.
|
|
|
|
|
|
|
|
- Add :doc:`Code of Conduct <code-of-conduct>`
|
|
|
|
(`<./CODE_OF_CONDUCT.rst>`_ |
|
|
|
|
`<https://bidict.readthedocs.io/code-of-conduct.html>`_).
|
|
|
|
|
|
|
|
- Drop official support for pypy3.
|
|
|
|
(It still may work but is no longer being tested.
|
|
|
|
Support may be added back once pypy3 has made more progress.)
|
|
|
|
|
|
|
|
0.10.0.post1 (2015-12-23)
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
- Minor documentation fixes and improvements.
|
|
|
|
|
|
|
|
|
|
|
|
0.10.0 (2015-12-23)
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
- Remove several features in favor of keeping the API simpler
|
|
|
|
and the code more maintainable.
|
|
|
|
|
|
|
|
- In the interest of protecting data safety more proactively, by default
|
|
|
|
bidict now raises an error on attempting to insert a non-unique value,
|
|
|
|
rather than allowing its associated key to be silently overwritten.
|
|
|
|
See discussion in `#21 <https://github.com/jab/bidict/issues/21>`_.
|
|
|
|
|
|
|
|
- New :attr:`forceupdate() <bidict.bidict.forceupdate>` method
|
|
|
|
provides a bulk :attr:`forceput() <bidict.bidict.forceput>` operation.
|
|
|
|
|
|
|
|
- Fix bugs in
|
|
|
|
:attr:`pop() <bidict.bidict.pop>` and
|
|
|
|
:attr:`setdefault() <bidict.bidict.setdefault>`
|
|
|
|
which could leave a bidict in an inconsistent state.
|
|
|
|
|
|
|
|
Breaking API Changes
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
- Remove ``bidict.__invert__``, and with it, support for the ``~b`` syntax.
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
Use :attr:`b.inv <bidict.BidictBase.inv>` instead.
|
2016-06-28 04:05:22 +00:00
|
|
|
`#19 <https://github.com/jab/bidict/issues/19>`_
|
|
|
|
|
|
|
|
- Remove support for the slice syntax.
|
|
|
|
Use ``b.inv[val]`` rather than ``b[:val]``.
|
|
|
|
`#19 <https://github.com/jab/bidict/issues/19>`_
|
|
|
|
|
|
|
|
- Remove ``bidict.invert``.
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
Use :attr:`b.inv <bidict.BidictBase.inv>`
|
2016-06-28 04:05:22 +00:00
|
|
|
rather than inverting a bidict in place.
|
|
|
|
`#20 <https://github.com/jab/bidict/issues/20>`_
|
|
|
|
|
|
|
|
- Raise ``ValueExistsException``
|
|
|
|
when attempting to insert a mapping with a non-unique key.
|
|
|
|
`#21 <https://github.com/jab/bidict/issues/21>`_
|
|
|
|
|
|
|
|
- Rename ``collapsingbidict`` to :class:`loosebidict <bidict.loosebidict>`
|
|
|
|
now that it suppresses
|
|
|
|
``ValueExistsException``
|
|
|
|
rather than the less general ``CollapseException``.
|
|
|
|
`#21 <https://github.com/jab/bidict/issues/21>`_
|
|
|
|
|
|
|
|
- ``CollapseException`` has been subsumed by
|
|
|
|
``ValueExistsException``.
|
|
|
|
`#21 <https://github.com/jab/bidict/issues/21>`_
|
|
|
|
|
|
|
|
- :attr:`put <bidict.bidict.put>` now raises ``KeyExistsException``
|
|
|
|
when attempting to insert an already-existing
|
|
|
|
key, and ``ValueExistsException`` when
|
|
|
|
attempting to insert an already-existing value.
|
|
|
|
|
|
|
|
|
|
|
|
0.9.0.post1 (2015-06-06)
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
- Fix metadata missing in the 0.9.0rc0 release.
|
|
|
|
|
|
|
|
|
|
|
|
0.9.0rc0 (2015-05-30)
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
- Add a Changelog!
|
|
|
|
Also a
|
|
|
|
`Contributors' Guide <https://github.com/jab/bidict/blob/master/CONTRIBUTING.rst>`_,
|
|
|
|
`Gitter chat room <https://gitter.im/jab/bidict>`_,
|
|
|
|
and other community-oriented improvements.
|
|
|
|
|
|
|
|
- Adopt Pytest (thanks Tom Viner and Adopt Pytest Month).
|
|
|
|
|
|
|
|
- Added property-based tests via
|
|
|
|
`hypothesis <https://hypothesis.readthedocs.io>`_.
|
|
|
|
|
|
|
|
- Other code, tests, and docs improvements.
|
|
|
|
|
|
|
|
Breaking API Changes
|
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
- Move ``bidict.iteritems`` and ``bidict.viewitems``
|
|
|
|
to new :mod:`bidict.compat` module.
|
|
|
|
|
|
|
|
- Move :class:`bidict.inverted`
|
|
|
|
to new :attr:`bidict.util` module
|
|
|
|
(still available from top-level :mod:`bidict` module as well).
|
|
|
|
|
|
|
|
- Move ``bidict.fancy_iteritems``
|
|
|
|
to :func:`bidict.util.pairs`
|
|
|
|
(also available from top level as :func:`bidict.pairs`).
|
|
|
|
|
|
|
|
- Rename ``bidict_type`` keyword arg to ``base_type``
|
|
|
|
in :func:`bidict.namedbidict`.
|