summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/precision.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-08-05 06:44:20 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-08-05 06:44:20 +0000
commit04d79b539391064f6a81fba9ffa45e6371ffcedd (patch)
treebe47fa1a0fe4a0a41bfde371dfd0d0d16c397d1e /numpy/oldnumeric/precision.py
parentd6eb562b8d4b37be1f2c6743bae5ea520703da64 (diff)
downloadnumpy-04d79b539391064f6a81fba9ffa45e6371ffcedd.tar.gz
Fixes for the recent change to oldnumeric
Diffstat (limited to 'numpy/oldnumeric/precision.py')
-rw-r--r--numpy/oldnumeric/precision.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/oldnumeric/precision.py b/numpy/oldnumeric/precision.py
index 82bcfe2e1..8a242f023 100644
--- a/numpy/oldnumeric/precision.py
+++ b/numpy/oldnumeric/precision.py
@@ -1,14 +1,16 @@
-# Lifted from Precision.py. This is for compatibility only. Notice that the
-# capitalized names have their old character strings
+# Lifted from Precision.py. This is for compatibility only.
+#
+# The character strings are still for "new" NumPy
+# which is the only Incompatibility with Numeric
__all__ = ['Character', 'Complex', 'Float',
'PrecisionError', 'PyObject', 'Int', 'UInt',
'UnsignedInteger', 'string', 'typecodes', 'zeros']
import string
-from olddefaults import zeros
+from functions import zeros
-typecodes = {'Character':'c', 'Integer':'1sil', 'UnsignedInteger':'bwu', 'Float':'fd', 'Complex':'FD'}
+typecodes = {'Character':'c', 'Integer':'bhil', 'UnsignedInteger':'BHI', 'Float':'fd', 'Complex':'FD'}
def _get_precisions(typecodes):
lst = []