Author: Antonio Cuni <[email protected]>
Branch: cpyext-nowrapper
Changeset: r92587:97550ad28d1a
Date: 2017-10-03 20:27 +0200
http://bitbucket.org/pypy/pypy/changeset/97550ad28d1a/
Log: (antocuni, ronan): fix the Py_DecRef usages inside cppyy
diff --git a/pypy/module/_cppyy/converter.py b/pypy/module/_cppyy/converter.py
--- a/pypy/module/_cppyy/converter.py
+++ b/pypy/module/_cppyy/converter.py
@@ -659,7 +659,7 @@
raise NotImplementedError
space.getbuiltinmodule("cpyext")
from pypy.module.cpyext.pyobject import Py_DecRef, PyObject
- Py_DecRef(space, rffi.cast(PyObject, rffi.cast(rffi.VOIDPP, arg)[0]))
+ Py_DecRef(rffi.cast(PyObject, rffi.cast(rffi.VOIDPP, arg)[0]))
class MacroConverter(TypeConverter):
diff --git a/pypy/module/_cppyy/executor.py b/pypy/module/_cppyy/executor.py
--- a/pypy/module/_cppyy/executor.py
+++ b/pypy/module/_cppyy/executor.py
@@ -224,7 +224,7 @@
result = rffi.cast(PyObject, lresult)
w_obj = from_ref(space, result)
if result:
- Py_DecRef(space, result)
+ Py_DecRef(result)
return w_obj
def execute(self, space, cppmethod, cppthis, num_args, args):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit