Skip to content

Releases: Marco-Sulla/python-frozendict

frozendict v1.5.1

11 Oct 21:55
Compare
Choose a tag to compare
  • 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

08 Jul 22:16
Compare
Choose a tag to compare

Turned back to the dict API:

  • removed is_frozendict and initialized attributes. Added _initialized.
  • removed __add__() and __sub__() methods (wait for PEP 584)

frozendict v1.4.0

25 Jan 19:16
Compare
Choose a tag to compare

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

frozendict v1.3.5

24 Oct 19:20
Compare
Choose a tag to compare
  • 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.

frozendict v1.3.4

23 Oct 23:42
Compare
Choose a tag to compare

Code and build cleaning.

frozendict v1.3.3

22 Oct 20:42
Compare
Choose a tag to compare

Speed improvements to constructor.

frozendict v1.3.2

21 Oct 21:37
Compare
Choose a tag to compare
  • Some little speed improvements
  • Updated benchmarks

frozendict v1.3.1

17 Oct 12:55
Compare
Choose a tag to compare

Some internal code cleaning.

frozendict v1.3

16 Oct 16:12
Compare
Choose a tag to compare
  • Speedup to creation of a copy of a frozendict
  • Added a testcase
  • Added benchmarks

frozendict v1.2

14 Oct 21:08
Compare
Choose a tag to compare

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.