Hacker GitHub

← All repos

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

Mentions per year 11 mentions · busiest year 2014 (2)
20082026
  1. …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
  2. …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
  3. …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
  4. 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
  5. …[6] https://github.com/orium/rpds [7] https://github.com/MagicStack/immutables [8] https://github.com/tobgu/pyrsistent
  6. '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.
  7. ▲ 3
    Pyrsistent: Persistent/Immutable/Functional Data Structures for Python
    story by tosh · 2019-07-05 · 0 comments
  8. ▲ 1
    Pyrsistent: Persistent/Immutable/Functional data structures for Python
    story by tosh · 2018-08-13 · 0 comments
  9. …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.
  10. 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!)
  11. ▲ 3
    Pyrsistent: Clojure-style persistent data structures in Python
    story by hessammehr · 2014-12-14 · 0 comments