[pypy-commit] pypy default: export few boring constants

fijal noreply at buildbot.pypy.org
Wed Feb 8 12:45:05 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r52226:c772d9d6c77f
Date: 2012-02-08 13:44 +0200
http://bitbucket.org/pypy/pypy/changeset/c772d9d6c77f/

Log:	export few boring constants

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
@@ -1,5 +1,5 @@
 
-from _numpypy import array, ndarray, int_, float_ #, complex_# , longlong
+from _numpypy import array, ndarray, int_, float_, bool_ #, complex_# , longlong
 from _numpypy import concatenate
 import sys
 import _numpypy as multiarray # ARGH
@@ -309,3 +309,8 @@
 set_string_function(array_repr, 1)
 
 little_endian = (sys.byteorder == 'little')
+
+Inf = inf = infty = Infinity = PINF = float('inf')
+nan = NaN = NAN = float('nan')
+False_ = bool_(False)
+True_ = bool_(True)


More information about the pypy-commit mailing list