PlasmaCalcs.tools.oop_tools.manage_attrs.set_or_del_attr

PlasmaCalcs.tools.oop_tools.manage_attrs.set_or_del_attr(obj, attr, value, unset=ATTR_UNSET, *, unset_fail_ok=True)
usually, setattr(obj, attr, value). However, if value is unset, delattr(obj, attr) instead.
(value will be compared to unset using “is”, not “==”.)
unset_fail_ok: bool
whether to ignore AttributeError when value is unset but obj.attr is not defined.