• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jab / bidict / 540
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 08 Jun 2016 06:17PM UTC
Jobs 2
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
540

push

travis-ci

jab
squashed changes for 0.12.0

- Add benchmarking to tests, and implement several functions more efficiently
  (including pairs(), inverted(), and bidict.copy()).

- put() now accepts on_dup_key and on_dup_val keyword arguments which allow you
  to override the default behavior when the key or value of a new item
  duplicates that of an existing one. These can take the following values:

  - bidict.DuplicationBehavior.RAISE
  - bidict.DuplicationBehavior.OVERWRITE
  - bidict.DuplicationBehavior.IGNORE

  For a bidict, on_dup_key defaults to OVERWRITE and on_dup_val defaults to
  RAISE, while for a loosebidict both default to OVERWRITE, maintaining
  backwards compatibility with the previous behavior when called with no
  keyword arguments.

- New putall() method provides a bulk put() API.

- Make initialization and bulk insert operations safer and more predictable by
  checking for and processing items with duplicate keys and values ahead of
  inserting any of the given items, by default. This default behavior can be
  overridden when calling putall() by passing precheck=False.

- New exceptions provide more precise information about error conditions:

  - UniquenessError
  - KeyNotUniqueError
  - ValueNotUniqueError

- Drop official support for CPython 3.3 (it will probably continue to work but
  is no longer being tested).

- Fix issue preventing a client class from inheriting from loosebidict (#34)

- Add

  - bidict.compat.viewkeys()
  - bidict.compat.viewvalues()
  - bidict.compat.iterkeys()
  - bidict.compat.itervalues()
  - bidict.compat.izip()
  - bidict.compat.izip_longest()

  to complement the existing iteritems() and viewitems() compatibility helpers.

Breaking API Changes
--------------------

Rename KeyExistsException KeyExistsError and ValueExistsException
ValueExistsError.

328 of 353 relevant lines covered (92.92%)

1.85 hits per line

Jobs
ID Job ID Ran Files Coverage
1 540.1 (PYENV_PYTHON_VER=2.7.11) 08 Jun 2016 06:17PM UTC 0
92.35
Travis Job 540.1
3 540.3 (PYENV_PYTHON_VER=3.5.1) 08 Jun 2016 06:18PM UTC 0
92.92
Travis Job 540.3
Source Files on build 540
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #540
  • 9391e3f6 on github
  • Prev Build on dev (#534)
  • Next Build on dev (#547)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc