[C++-SIG] bug in setattr_handler?
Phil Austin
phil at geog.ubc.ca
Wed May 17 22:41:54 CEST 2000
The example that I just circulated to demonstrate setattr
threw an exception if the attribute wasn't found. But the exception
is silently cleared in PythonType::setattr_handler:
*** cxx_extensions.cxx 2000/05/08 23:35:08 1.1
--- cxx_extensions.cxx 2000/05/17 20:38:29
***************
*** 353,359 ****
}
catch( Py::Exception & )
{
! return 0;
}
}
--- 353,360 ----
}
catch( Py::Exception & )
{
! //return 0; ignore all exceptions??
! return Py::Null();
}
}
More information about the Cplusplus-sig
mailing list