diff options
Diffstat (limited to 'numpy/oldnumeric')
-rw-r--r-- | numpy/oldnumeric/__init__.py | 12 | ||||
-rw-r--r-- | numpy/oldnumeric/compat.py | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/numpy/oldnumeric/__init__.py b/numpy/oldnumeric/__init__.py index 439cfe907..67874f814 100644 --- a/numpy/oldnumeric/__init__.py +++ b/numpy/oldnumeric/__init__.py @@ -2,20 +2,32 @@ from numpy import * from compat import * from olddefaults import * +from typeconv import * +from functions import * import numpy import compat import olddefaults +import typeconv +import functions __version__ = numpy.__version__ __all__ = ['__version__'] __all__ += numpy.__all__ __all__ += compat.__all__ +__all__ += typeconv.__all__ for name in olddefaults.__all__: if name not in __all__: __all__.append(name) +for name in functions.__all__: + if name not in __all__: + __all__.apend(name) + +del name del numpy del compat del olddefaults +del functions +del typeconv diff --git a/numpy/oldnumeric/compat.py b/numpy/oldnumeric/compat.py index 0a4b41228..3c8cf9b70 100644 --- a/numpy/oldnumeric/compat.py +++ b/numpy/oldnumeric/compat.py @@ -7,7 +7,7 @@ __all__ = ['NewAxis', 'UInt8','UInt16','UInt32', 'UnsignedInt32', 'UnsignedInteger', # UnsignedInt64 and Unsigned128 added below if possible # same for Int64 and Int128, Float128, and Complex128 - 'Int8', 'Int16', 'Int32', + 'Int8', 'Int16', 'Int32', 'Int0', 'Int', 'Float0', 'Float', 'Complex0', 'Complex', 'PyObject', 'Float32', 'Float64', 'Float16', 'Float8', 'Complex32', 'Complex64', 'Complex8', 'Complex16', @@ -19,6 +19,7 @@ __all__ = ['NewAxis', 'dump', 'dumps' ] + import numpy.core.multiarray as mu import numpy.core.umath as um import numpy.core.numerictypes as nt @@ -38,6 +39,7 @@ multiarray = mu def sarray(a, dtype=None, copy=False): return array(a, dtype, copy) + #Use this to add a new axis to an array #compatibility only NewAxis = None |