Author: Alex Gaynor <[email protected]>
Branch: numpy-dtype-refactor
Changeset: r49352:d190df7f6bfb
Date: 2011-11-11 19:07 -0500
http://bitbucket.org/pypy/pypy/changeset/d190df7f6bfb/
Log: stuff seems to translate!
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -118,7 +118,7 @@
return self.unbox(v1) >= self.unbox(v2)
def bool(self, v):
- return bool(self.unbox(v))
+ return bool(self.for_computation(self.unbox(v)))
@simple_binary_op
def max(self, v1, v2):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit