./devel/py-immutabledict, Immutable wrapper around dictionaries for Python 3

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 4.2.1, Package name: py312-immutabledict-4.2.1, Maintainer: khorben

immutable is a fork of frozendict, an immutable wrapper around dictionaries.

It implements the complete mapping interface. It can be used as a drop-in
replacement for dictionaries where immutability is desired. The immutabledict
constructor mimics dict, and all of the expected interfaces (iter, len, repr,
hash, getitem) are provided. Note that an immutabledict does not guarantee the
immutability of its values, so the utility of hash method is restricted by
usage.

The only difference is that the copy() method of immutable takes variable
keyword arguments, which will be present as key/value pairs in the new,
immutable copy.


Master sites:

Filesize: 6.082 KB

Version history: (Expand)


CVS history: (Expand)


   2024-11-18 09:59:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-immutabledict: updated to 4.2.1

4.2.1

Published with attestation
Update classifiers, Github Actions... for Python 3.13 (no code changes)
   2024-03-07 11:04:29 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-immutabledict: updated to 4.2.0

Version 4.2.0
Add discard method which return a new immutabledict without the item at the \ 
given key, if present.
   2024-01-08 12:57:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-immutabledict: updated to 4.1.0

Version 4.1.0

Do not store cached hash value when pickling.

Version 4.0.0

Replace __init__ by __new__.
Add explicit items()/keys()/values() methods to speedup these methods.
Add set/delete/update functions.
Add documentation at immutabledict.corenting.fr

Version 3.0.0

copy() (breaking change): remove the option to pass keyword arguments (which \ 
were present as key/value pairs in the copy). Now the method doesn't take any \ 
arguments (it behaves the same as a normal dict).
Python versions: drop Python 3.7 support
Typing: fixes
Make the key covariant.
Fix key/value typing missing for ImmutableOrderedDict
   2023-10-28 21:57:26 by Thomas Klausner | Files touched by this commit (516) | Package updated
Log message:
python/wheel.mk: simplify a lot, and switch to 'installer' for installation

This follows the recommended bootstrap method (flit_core, build, installer).

However, installer installs different files than pip, so update PLISTs
for all packages using wheel.mk and bump their PKGREVISIONs.
   2023-07-05 17:48:20 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-immutabledict: updated to 2.2.5

Version 2.2.5
Fix hard-coded class reference in fromkeys() resulting in always using dict for \ 
fromkeys() (instead of OrderedDict in ImmutableOrderedDict for example).
   2023-04-03 09:52:23 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-immutabledict: updated to 2.2.4

Version 2.2.4

Include tests in sdist for easier packaging
   2022-11-08 09:52:48 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-immutabledict: updated to 2.2.3

Version 2.2.3

Fix TypeError message when using |=.
Update docstring for ImmutableOrderedDict to indicate that is not needed anymore \ 
for Python >= 3.7 but kept for compatibility purposes
Use postponed evaluation of annotations (PEP 563) for the typing

Version 2.2.2

Update classifiers, Github Actions... for Python 3.11 (no code changes)
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS