This method has bad semantics. Ideally,_default
should only be returned when the object does not have an attribute with the specifiedname
. In all other casesGetAttr
should raise thePythonException
explaining what went wrong instead of returning_default
.