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

jab / bidict / 528
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 06 Jun 2016 01:58PM UTC
Jobs 1
Files 9
Run time 0s
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
528

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.

326 of 348 relevant lines covered (93.68%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
3 528.3 (PYENV_PYTHON_VER=3.5.1) 06 Jun 2016 01:58PM UTC 0
93.68
Travis Job 528.3
Source Files on build 528
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #528
  • 9af16fac on github
  • Prev Build on dev (#524)
  • Next Build on dev (#534)
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