[pypy-commit] pypy numpy-back-to-applevel: cheat a tiny bit. One test passes (we have to export any and all though

fijal noreply at buildbot.pypy.org
Thu Jan 26 15:31:00 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51797:1a4c04c232fb
Date: 2012-01-26 16:30 +0200
http://bitbucket.org/pypy/pypy/changeset/1a4c04c232fb/

Log:	cheat a tiny bit. One test passes (we have to export any and all
	though and implement axis there)

diff --git a/lib_pypy/numpypy/core/arrayprint.py b/lib_pypy/numpypy/core/arrayprint.py
--- a/lib_pypy/numpypy/core/arrayprint.py
+++ b/lib_pypy/numpypy/core/arrayprint.py
@@ -594,7 +594,7 @@
                 precision = 0
             precision = min(self.precision, precision)
             self.max_str_len = len(str(int(max_val))) + precision + 2
-            if _nc.any(special):
+            if special.any():
                 self.max_str_len = max(self.max_str_len,
                                        len(_nan_str),
                                        len(_inf_str)+1,
diff --git a/lib_pypy/numpypy/core/numeric.py b/lib_pypy/numpypy/core/numeric.py
--- a/lib_pypy/numpypy/core/numeric.py
+++ b/lib_pypy/numpypy/core/numeric.py
@@ -4,6 +4,8 @@
 import _numpypy as multiarray # ARGH
 from numpypy.core.arrayprint import array2string
 
+
+
 def asanyarray(a, dtype=None, order=None, maskna=None, ownmaskna=False):
     """
     Convert the input to an ndarray, but pass ndarray subclasses through.


More information about the pypy-commit mailing list