tobgu/pyrsistent
View on GitHub ↗ ★ 2,204 Python
Persistent/Immutable/Functional data structures for Python
11 mentions on Hacker News by 10 people: 3 stories, 8 comments · first 2014-12-14 · latest 2025-12-11
20082026
-
…PRecord extends PMap, which implements __add__ as self.update(arg) (which does not mutate self) https://github.com/tobgu/pyrsistent/blob/master/README.rst#precord > > https://github.com/tobgu/pyrsistent/blob/master/pyrsistent/_pmap.py -…
comment by westurner · 2025-12-11 · in A “frozen” dictionary for Python -
…structures whenever I need to use lists, sets, or dicts as dict keys, or make sets of such items: https://github.com/tobgu/pyrsistent
comment by code_biologist · 2025-12-11 · in A “frozen” dictionary for Python -
…of "mostly Python" over the fact that it's slower than what native C would get them. [1]: https://github.com/tobgu/pyrsistent [2]: https://github.com/libgit2/pygit2
comment by ben509 · 2021-03-29 · in Hello, HPy -
There's Pyrsistent[1], which provides persistent data structures. [1] https://github.com/tobgu/pyrsistent
comment by heavyset_go · 2021-01-21 · in Toolz: A functional standard library for Python -
…[6] https://github.com/orium/rpds [7] https://github.com/MagicStack/immutables [8] https://github.com/tobgu/pyrsistent
comment by je42 · 2020-12-07 · in These Modern Programming Languages Will Make You Suffer -
'you can write purely functionally in Python'. I wish https://github.com/tobgu/pyrsistent were more mainstream in the Python community and get some syntax love.
comment by pacala · 2019-09-13 · in The beauty of functional languages in deep learning – Clojure and Haskell -
…hidden somewhere in the standard library, but I haven't looked. I did stumble upon pyrsistent ( https://github.com/tobgu/pyrsistent ) a while ago which does provide proper immutable (and persistent) data structures for python.
comment by FrederikNS · 2017-02-23 · in Python past, present, and future with Guido van Rossum [audio] -
Very neat, and it led me (again) to pyrsistent ( https://github.com/tobgu/pyrsistent ), which does persistent data structures and which I've been pondering using with Hy ( https://github.com/hylang/hy ). (edit: damn autocorrect!)
comment by rcarmo · 2014-12-14 · in Mochi – Dynamically-typed language for functional and actor-style programming