Following code behaves differently from CPython: class NoAttribute(object): def __getattr__(self, name): raise Exception obj = NoAttribute() print hasattr(obj, 'attribute') Seo Sanghyeon