def __contains__(self, other):
    'Does the attribute `other` exist?'
    return self.hasAttr(other)
Does the attribute `other` exist?
def __contains__(self, other):
    
    return self.hasAttr(other)