Which magic method method does hasattr call?
getattr(__o, name) can also be called as __o.__getattr__(name)
setattr(__o, name) can also be called as __o.__setattr__(name)
But what is the equivalent for hasattr?
I know the associated magic method for the in keyword is __contains__.