3 ms·
It's Python. You can override practically any behavior. Hell, use ctypes and mutate immutable tuples! Doing so is well-defined in the C API! What bugs me more
by quotemstr 2y ago
It's Python. You can override practically any behavior. Hell, use ctypes and mutate immutable tuples! Doing so is well-defined in the C API!
What bugs me more about frozen dataclasses is how post-init methods have to use the setattr hack.