You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parameterized classes and instances have attributes that users of those objects should not override, as doing so could break their code in hard-to-debug ways. Could/should ParameterizedMetaclass.__setattr__ be updated to raise a warning/error when the attribute name is one used by Param? This behavior should at least be documented.
Opening this issue was motivated by seeing the public initialized attribute on a Parameterized instance, which gave me goosebumps as I'm pretty sure I used that in some of my code. Fortunately it's planned to be updated to _initialized (#543).
Parameterized classes and instances have attributes that users of those objects should not override, as doing so could break their code in hard-to-debug ways. Could/should
ParameterizedMetaclass.__setattr__
be updated to raise a warning/error when the attribute name is one used by Param? This behavior should at least be documented.Opening this issue was motivated by seeing the public
initialized
attribute on a Parameterized instance, which gave me goosebumps as I'm pretty sure I used that in some of my code. Fortunately it's planned to be updated to_initialized
(#543).EDIT: adding the output of the snippet above...
The text was updated successfully, but these errors were encountered: