Immutables

Latest version: v0.21

Safety actively analyzes 682487 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

0.7

New Features

* All new APIs are covered in the [README](https://github.com/MagicStack/immutables#api) 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.

0.6

* Fixed a crash in Map constructor (C implementation)

0.5

* Reject keyword and positional arguments in __new__

0.4

* 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%.

0.3

* Implement ``Map.__repr__()`` and ``Map.__hash__()``

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.