2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

Reference-counting bug fix, thanks to Mark Evans <mark.evans@clarisay.com>

[SVN r8088]
This commit is contained in:
Dave Abrahams
2000-10-31 23:43:18 +00:00
parent b2d0dbd291
commit bfa255afa4

View File

@@ -16,7 +16,7 @@ namespace py {
template <class T>
T object_from_python(PyObject* p, Type<T>)
{
Ptr x(p);
Ptr x(p, Ptr::new_ref);
if (!T::accepts(x))
{
PyErr_SetString(PyExc_TypeError, p->ob_type->tp_name);