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
Called when an attribute lookup has not found the attribute in the usual places (i.e. it is not an instance attribute nor is it found in the class tree for self). name is the attribute name. This method should return the (computed) attribute value or raise an AttributeError exception.
However, Shared.DC.Scripts.Bindings.UnauthorizedBinding.__getattr__ has the signature self, name, default=None. When Python's getattr(obj, x, default) delegates to this __getattr__ it will not pass on default and the result will be None when obj has not attribute x.
The text was updated successfully, but these errors were encountered:
The Python documentation specifies:
However,
Shared.DC.Scripts.Bindings.UnauthorizedBinding.__getattr__
has the signatureself, name, default=None
. When Python'sgetattr(obj, x, default)
delegates to this__getattr__
it will not pass ondefault
and the result will beNone
whenobj
has not attributex
.The text was updated successfully, but these errors were encountered: