Ticket #4701: boost_python_get_override.patch
File boost_python_get_override.patch, 773 bytes (added by , 12 years ago) |
---|
-
src/wrapper.cpp
15 15 { 16 16 if (this->m_self) 17 17 { 18 if (handle<> m = handle<>( 19 python::allow_null( 20 ::PyObject_GetAttrString( 21 this->m_self, const_cast<char*>(name)))) 22 ) 18 if(::PyObject_HasAttrString( 19 this->m_self, const_cast<char*>(name)) == 1) 23 20 { 21 handle<> m = handle<>( 22 ::PyObject_GetAttrString( 23 this->m_self, const_cast<char*>(name))); 24 24 PyObject* borrowed_f = 0; 25 25 26 26 if (