Frozendict

Latest version: v2.4.4

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

Scan your dependencies

Page 6 of 7

1.4.0

Many, Many changes under and over the hood:

* now `copy()` and `frozendict(another_frozendict)` returns the same instance, like all the other CPython immutables
* fixed `repr()`: previously the result string was cached. Since now `frozendict` can contains also mutables, this is wrong (and maybe it is wrong also when all the values are immutable...)
* `a_frozendict - iterable` now supports also text-like (`str`, `bytes`...) and generator-like iterables.
* Removed the not-so-useful `frozendictbase` class.
* Many micro-improvments to speed
* Now attribute `initialized` is public

1.3.5

- Now you can add also unhashable values to a `frozendict`. If you try to get the hash of such a frozendict, a TypeError will be raised. This is the same behaviour of `tuple`, `immutables.Map` and the slezica's `frozendict`
- The empty `frozendict()` is now a singleton, like `()` and `frozenset()`.
So `(frozendict() is frozendict([])) == True`.

1.3.4

Code and build cleaning.

1.3.3

Speed improvements to constructor.

1.3.2

- Some little speed improvements
- Updated benchmarks

1.3.1

Some internal code cleaning.

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.