Upgrade ImmutableStrategy
#3
Labels
DC-4
Difficulty class 4/5 → Multidomain knowledge
enhancement
New non-feature request (e.g. performance)
PL-2
Priority level 2/5 → Medium-high
What is the expected enhancement?
Currently,
ImmutableStrategy
updates__new__()
and configures__repr__()
to dynamically include the args passed to__init__()
.There are cases, nonetheless, where we do not want some of those args to be included in
repr
, so exceptions have to be hardcoded into the class, forcing updates toImmutableStrategy
to create a child class. Ideally we would like to avoid this, letting the user specify which args to include and which not to.Also, there are better ways to enforce immutability based on meta-programming concepts (e.g.
__slots__
, descriptors).The text was updated successfully, but these errors were encountered: