Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r58420:2512d81cc6f3
Date: 2012-10-25 05:59 -0700
http://bitbucket.org/pypy/pypy/changeset/2512d81cc6f3/
Log: force return value of bool in is_static
diff --git a/pypy/module/cppyy/interp_cppyy.py
b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -424,7 +424,9 @@
def is_static(self):
f = self.functions[0]
assert isinstance(f, CPPMethod)
- self.space.wrap(isinstance(f, CPPFunction))
+ if isinstance(f, CPPFunction):
+ return self.space.w_True
+ return self.space.w_False
@jit.unroll_safe
@unwrap_spec(args_w='args_w')
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit