Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Traits (Mixins) to give +,/,-,* to MutableMapping

Project Description


It is an enhancement of MutableMapping based on Traits (Mixins). It makes dict addition therefore possible.

It currently only offers:

  • addition;
  • substraction;
  • multiplication;
  • division.

Quick Example

dict with addition used here :
It instanciate like a dict::
>>> from archery.bow import Hankyu
>>> a = Hankyu(x=1,y=2,z=2)
It adds :) ::
>>> a+a
{'y': 4, 'x': 2, 'z': 4}
>>> a+-2
{'y': 0, 'x': -1, 'z': 0}
>>> a+.5
{'y': 2.5, 'x': 1.5, 'z': 2.5}
>>> .5+a
{'y': 2.5, 'x': 1.5, 'z': 2.5}

What’s new

  • py3 compliance;
  • install is blocked if tests are failing with pip
  • install is blocked if tests are failing with easy_install

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(10.4 kB) Copy SHA256 Hash SHA256
Source Sep 3, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting