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
hasattr() in python is implemented by calling __getattr__ and checking whether it threw AttributeError. Since for DottedDict__getattr__ = __getitem__, a KeyError is thrown and not AttributeError, therefore hasattr can fall with an exception instead of returning False
hasattr()
in python is implemented by calling__getattr__
and checking whether it threwAttributeError
. Since forDottedDict
__getattr__ = __getitem__
, a KeyError is thrown and not AttributeError, therefore hasattr can fall with an exception instead of returningFalse
The simplest fix that I came up with is in pr #14
The text was updated successfully, but these errors were encountered: