Settings

Theme

Show HN: Mutuple – Replace items in Python's "immutable" tuples

github.com

2 points by davvid 2 years ago · 1 comment

Reader

davvidOP 2 years ago

While I mostly wrote `mutuple` for fun, it's also a proof of concept for solving a tricky pickling problem in the jsonpickle[1] library: restoring object graphs that contain tuples with back-references to the same tuple.

I'm pretty sure there are better ways of handling this edge case, but, hey, it works and was a pretty fun experiment.

[1] https://github.com/jsonpickle/jsonpickle/pull/491

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection