Releases: Marco-Sulla/python-frozendict
Releases · Marco-Sulla/python-frozendict
frozendict v1.5.1
- speedup to hash computation
- subclassing frozendict now is safer
- now an exception type and message that is raised by immutability is aligned to the stdlib (tuple, frozenset)
frozendict v1.5.0
Turned back to the dict
API:
- removed
is_frozendict
andinitialized
attributes. Added_initialized
. - removed
__add__()
and__sub__()
methods (wait for PEP 584)
frozendict v1.4.0
Many, Many changes under and over the hood:
- now
copy()
andfrozendict(another_frozendict)
returns the same instance, like all the other CPython immutables - fixed
repr()
: previously the result string was cached. Since nowfrozendict
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
frozendict v1.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 oftuple
,immutables.Map
and the @slezica'sfrozendict
- The empty
frozendict()
is now a singleton, like()
andfrozenset()
.
So(frozendict() is frozendict([])) == True
.
frozendict v1.3.4
Code and build cleaning.
frozendict v1.3.3
Speed improvements to constructor.
frozendict v1.3.2
- Some little speed improvements
- Updated benchmarks
frozendict v1.3.1
Some internal code cleaning.
frozendict v1.3
- Speedup to creation of a copy of a frozendict
- Added a testcase
- Added benchmarks
frozendict v1.2
Completely reworked. Now frozendict
inherits directly from dict
and does not use the slow MappingProxyType
anymore. Immutability is preserved anyway.
Notable speed-ups in all methods.