MagicStack Immutables Versions Save

A high-performance immutable mapping type for Python.

v0.8

5 years ago
  • Add new MapMutation.update() method that behaves like MutableMapping.update()

  • Make it faster to create a Map() from another Map()—it's now an O(1) operation.

  • update() method had a bug that could cause the update Map object to have a wrong number of elements.

v0.7

5 years ago

New Features

  • All new APIs are covered in the README file.

  • Allow Map objects to be constructed from other mappings: Map(a=1), or Map([('a', 1)]), or Map(dict(a=1)).

  • Implement Map.update() method.

  • Implement Map.mutate() and MapMutation API.

  • Make Map objects pickleable.

  • Make Map.keys(), Map.values(), and Map.items() proper dict-view like objects.

v0.6

5 years ago
  • Fixed a crash in Map constructor (C implementation)

v0.5

6 years ago
  • Reject keyword and positional arguments in new

v0.4

6 years ago
  • Breaking change: Map.delete() now raises a KeyError if a user deletes a missing key.

  • Add a pure-Python implementation to support PyPy.

  • Test coverage is now 100%.

v0.3

6 years ago
  • Implement Map.__repr__() and Map.__hash__()