Immutables

Latest version: v0.20

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

Scan your dependencies

Page 2 of 3

0.14

* Allow `None` to be used as key in pure-Python implementation.

0.13

Bugfixes

* Various improvements w.r.t. type annotations & typing
support (by hukkinj1)

* Fix pure-Python implementation to accept keyword argument
"col" correctly (by hukkinj1)

0.12

Bug Fixes
=======

* Fix the mutation API to maintain elements count correctly (25, 24)

0.9

* Don't allow MapMutation.update() calls after the mutation is finished

* Simplify MapMutation.__exit__() implementation

0.8

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

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.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.