id summary reporter owner description type status milestone component version severity resolution keywords cc 2794 boost::python::handle constructor problem Rick Yang Dave Abrahams "Hi, I tried my test code: {{{ #include #include #include #include int main(void) { using boost::python::allow_null; using boost::python::handle; Py_Initialize(); PyObject* py_int = PyInt_FromLong(68); std::cout << ""py_int->ob_refcnt = ["" << py_int->ob_refcnt << ']' << std::endl; { handle h1(allow_null(py_int)); handle h2(py_int); } std::cout << ""py_int->ob_refcnt = ["" << py_int->ob_refcnt << ']' << std::endl; boost::python::decref(py_int); Py_Finalize(); return boost::exit_success; } }}} and this is my result: {{{ py_int->ob_refcnt = [9] py_int->ob_refcnt = [7] }}} the reference counter not keep to1 9. " Patches closed Boost 1.39.0 python USE GITHUB Boost 1.38.0 Problem invalid