pyrsistent
pyrsistent copied to clipboard
Persistent/Immutable/Functional data structures for Python
Hi, I just started using pyrsistent, but it's working great so far. Thanks for maintaining it. Here's some code that I dislike. ```python3 @dataclass_json @dataclass(frozen=True) class Foo: bar: Dict[str, str]...
The current matrix of os + platform_id with a bunch of excludes is replaced with a list of objects. A similar set of changes was tested in my pyrsistent-extras library:...
Is there a recommended way to insert multiple elements at a position in a `pvector`? The equivalent of the following Python list code: ``` >>> xs = [1, 2, 6,...
as it fails with newer versions https://aur.archlinux.org/packages/python-pyrsistent#comment-993405
Specifying a tuple type for a field seems to break pyrsistent's type checker. Pyrsistent version 0.20.0 Python 3.12 Linux (NixOS) Minimal example `test.py`: ```py from pyrsistent import * IVec2 =...