3 ms·
Data classes can be made immutable using ‘frozen=True’. It sucks that it’s not default though. Can you give an example of how you use enums and named tuples in
by wk_end 6y ago
Data classes can be made immutable using ‘frozen=True’. It sucks that it’s not default though.
Can you give an example of how you use enums and named tuples in the same way? That just doesn’t seem to make a lot of sense to me, but maybe I’m missing something.