Index: src/wrapper.cpp =================================================================== --- src/wrapper.cpp (revision 65707) +++ src/wrapper.cpp (working copy) @@ -15,12 +15,12 @@ { if (this->m_self) { - if (handle<> m = handle<>( - python::allow_null( - ::PyObject_GetAttrString( - this->m_self, const_cast(name)))) - ) + if(::PyObject_HasAttrString( + this->m_self, const_cast(name)) == 1) { + handle<> m = handle<>( + ::PyObject_GetAttrString( + this->m_self, const_cast(name))); PyObject* borrowed_f = 0; if (