[pypy-commit] pypy numpy-back-to-applevel: hooray applevel print works

fijal noreply at buildbot.pypy.org
Tue Jan 24 19:44:56 CET 2012

Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-back-to-applevel
Changeset: r51740:f11a97418c3f
Date: 2012-01-24 20:44 +0200

Log:	hooray applevel print works

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
@@ -14,8 +14,8 @@
 import sys
 import _numpypy as _nt
-from _numpypy import maximum, minimum, absolute, not_equal, isinf, isnan
-#from _numpypy import format_longfloat, datetime_as_string, datetime_data, isna
+from _numpypy import maximum, minimum, absolute, not_equal, isinf, isnan, isna
+#from _numpypy import format_longfloat, datetime_as_string, datetime_data
 from .fromnumeric import ravel
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
@@ -180,7 +180,8 @@
     skipdtype = (arr.dtype.type in _typelessdata) and arr.size > 0
-    if arr.flags.maskna:
+    # XXX pypy lacks support
+    if 0 and arr.flags.maskna:
         whichna = isna(arr)
         # If nothing is NA, explicitly signal the NA-mask
         if not any(whichna):

More information about the pypy-commit mailing list