A high-performance immutable mapping type for Python.
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.
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.
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%.
Map.__repr__()
and Map.__hash__()