[Numpy-svn] r2951 - trunk/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Thu Aug 3 19:37:02 EDT 2006
Author: oliphant
Date: 2006-08-03 18:37:00 -0500 (Thu, 03 Aug 2006)
New Revision: 2951
Modified:
trunk/numpy/core/numerictypes.py
Log:
Make sure the scalars corresponding to intp and uintp are added.
Modified: trunk/numpy/core/numerictypes.py
===================================================================
--- trunk/numpy/core/numerictypes.py 2006-08-03 20:19:30 UTC (rev 2950)
+++ trunk/numpy/core/numerictypes.py 2006-08-03 23:37:00 UTC (rev 2951)
@@ -302,8 +302,13 @@
bits = 8*bytes
_add_array_type('float', bits)
_add_array_type('complex', bits)
+ _gi = dtype('p')
+ if _gi.type not in sctypes['int']:
+ sctypes['int'].append(_gi.type)
+ sctypes['uint'].append(dtype('P').type)
_set_array_types()
+
genericTypeRank = ['bool', 'int8', 'uint8', 'int16', 'uint16',
'int32', 'uint32', 'int64', 'uint64', 'int128',
'uint128', 'float16',
More information about the Numpy-svn
mailing list