[pypy-commit] pypy numpy-record-dtypes: expose some more names

fijal noreply at buildbot.pypy.org
Mon Feb 6 19:29:04 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r52144:e275565bc002
Date: 2012-02-06 20:28 +0200
http://bitbucket.org/pypy/pypy/changeset/e275565bc002/

Log:	expose some more names

diff --git a/pypy/module/micronumpy/__init__.py b/pypy/module/micronumpy/__init__.py
--- a/pypy/module/micronumpy/__init__.py
+++ b/pypy/module/micronumpy/__init__.py
@@ -47,11 +47,15 @@
         'int8': 'interp_boxes.W_Int8Box',
         'byte': 'interp_boxes.W_Int8Box',
         'uint8': 'interp_boxes.W_UInt8Box',
+        'ubyte': 'interp_boxes.W_UInt8Box',
         'int16': 'interp_boxes.W_Int16Box',
         'short': 'interp_boxes.W_Int16Box',
         'uint16': 'interp_boxes.W_UInt16Box',
+        'ushort': 'interp_boxes.W_UInt16Box',
         'int32': 'interp_boxes.W_Int32Box',
+        'intc': 'interp_boxes.W_Int32Box',
         'uint32': 'interp_boxes.W_UInt32Box',
+        'uintc': 'interp_boxes.W_UInt32Box',
         'int64': 'interp_boxes.W_Int64Box',
         'uint64': 'interp_boxes.W_UInt64Box',
         'longlong': 'interp_boxes.W_LongLongBox',
@@ -63,6 +67,7 @@
         'float32': 'interp_boxes.W_Float32Box',
         'float64': 'interp_boxes.W_Float64Box',
         'intp': 'types.IntP.BoxType',
+        'uintp': 'types.UIntP.BoxType',
         #'str_': 'interp_boxes.W_StringBox',
         #'unicode_': 'interp_boxes.W_UnicodeBox',
         #'void': 'interp_boxes.W_VoidBox',
diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -518,4 +518,8 @@
     if tp.T == lltype.Signed:
         IntP = tp
         break
+for tp in [UInt32, UInt64]:
+    if tp.T == lltype.Unsigned:
+        UIntP = tp
+        break
 del tp


More information about the pypy-commit mailing list