summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/precision.py
diff options
context:
space:
mode:
authorRobert Kern <robert.kern@gmail.com>2008-07-03 20:21:20 +0000
committerRobert Kern <robert.kern@gmail.com>2008-07-03 20:21:20 +0000
commit2f18f9d6834c1eeaf7a234f2810c8c1ba37c7abf (patch)
treec972009b347accebab93d0ba24942960ddda35d9 /numpy/oldnumeric/precision.py
parent5873cfd7d0d8f280a3682ed80540cab2c1af65e4 (diff)
downloadnumpy-2f18f9d6834c1eeaf7a234f2810c8c1ba37c7abf.tar.gz
Correct the oldnumeric typecodes, update the tests to work on 32-bit machines, make sure these tests are installed with numpy so they can be run with numpy.test().
Diffstat (limited to 'numpy/oldnumeric/precision.py')
-rw-r--r--numpy/oldnumeric/precision.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/numpy/oldnumeric/precision.py b/numpy/oldnumeric/precision.py
index 51dd77454..c095ceb19 100644
--- a/numpy/oldnumeric/precision.py
+++ b/numpy/oldnumeric/precision.py
@@ -5,12 +5,12 @@
__all__ = ['Character', 'Complex', 'Float',
'PrecisionError', 'PyObject', 'Int', 'UInt',
- 'UnsignedInteger', 'string', 'typecodes', 'zeros']
+ 'UnsignedInt', 'UnsignedInteger', 'string', 'typecodes', 'zeros']
from functions import zeros
import string # for backwards compatibility
-typecodes = {'Character':'c', 'Integer':'bhil', 'UnsignedInteger':'BHI', 'Float':'fd', 'Complex':'FD'}
+typecodes = {'Character':'c', 'Integer':'bhil', 'UnsignedInteger':'BHIL', 'Float':'fd', 'Complex':'FD'}
def _get_precisions(typecodes):
lst = []
@@ -67,8 +67,7 @@ try:
__all__.extend(['UnsignedInt128', 'UInt128'])
except(PrecisionError):
pass
-UnsignedInteger = 'u'
-UInt = UnsignedInteger
+UInt = UnsignedInt = UnsignedInteger = 'u'
try:
Int0 = _lookup(_code_table, 'Integer', 0)