Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r67018:5514fa992ac6
Date: 2013-09-17 14:08 -0700
http://bitbucket.org/pypy/pypy/changeset/5514fa992ac6/

Log:    by definition, temporary objects are not seen before

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
@@ -190,7 +190,7 @@
         long_result = capi.c_call_o(space, cppmethod, cppthis, num_args, args, 
self.cppclass)
         ptr_result = rffi.cast(capi.C_OBJECT, long_result)
         return interp_cppyy.wrap_cppobject(space, ptr_result, self.cppclass,
-                                           do_cast=False, python_owns=True)
+                                           do_cast=False, python_owns=True, 
fresh=True)
 
     def execute_libffi(self, space, cif_descr, funcaddr, buffer):
         from pypy.module.cppyy.interp_cppyy import FastCallNotPossible
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to