Re:Show HN: Gelidum – My Python library to freeze objects
by nightfly on Monday June 14, 2021 @09:36PM
(#27510416)
> this package tries to make immutable objects to make it easier avoid accidental modifications in your code.
Seems like it's insurance, which doesn't seem bad
Re:Show HN: Gelidum – My Python library to freeze objects
by diegojromero on Tuesday June 15, 2021 @04:14AM
(#27512587)
Exactly my main issue. I see this code as something that asserts that an object is not modified by that "bad" code, but I fail to see more use-cases. I've been thinking about doing some kind of dictionary datastore with these frozen objects but I'm not sure if it is actually useful.
For that reason I’m having a tough time seeing the use case for this. I could see it being useful with “bad” code that mutates things it shouldn’t… but can’t really think of a way I’d integrate this in an environment where I control most or all of the code.