Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r53678:fa8924f637cc
Date: 2012-03-15 09:15 -0700
http://bitbucket.org/pypy/pypy/changeset/fa8924f637cc/
Log: fix bench1.py for new calling w/o needing to pass return type at
cppyy-level
diff --git a/pypy/module/cppyy/test/bench1.py b/pypy/module/cppyy/test/bench1.py
--- a/pypy/module/cppyy/test/bench1.py
+++ b/pypy/module/cppyy/test/bench1.py
@@ -55,13 +55,13 @@
self.lib = cppyy.load_reflection_info("./example01Dict.so")
self.cls = cppyy._type_byname("example01")
- self.inst = self.cls.get_overload(self.cls.type_name).call(None,
cppyy.CPPInstance, 0)
+ self.inst = self.cls.get_overload(self.cls.type_name).call(None, 0)
def __call__(self):
addDataToInt = self.cls.get_overload("addDataToInt")
instance = self.inst
for i in range(NNN):
- addDataToInt.call(instance, None, i)
+ addDataToInt.call(instance, i)
return i
class CppyyInterpBench2(CppyyInterpBench1):
@@ -69,7 +69,7 @@
addDataToInt = self.cls.get_overload("overloadedAddDataToInt")
instance = self.inst
for i in range(NNN):
- addDataToInt.call(instance, None, i)
+ addDataToInt.call(instance, i)
return i
class CppyyPythonBench1(object):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit