Author: Alex Gaynor <[email protected]>
Branch: numpy-dtype-alt
Changeset: r46555:d821e2c64568
Date: 2011-08-16 23:02 -0500
http://bitbucket.org/pypy/pypy/changeset/d821e2c64568/

Log:    more completeness, and whacking and :(

diff --git a/pypy/module/micronumpy/interp_dtype.py 
b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -223,12 +223,20 @@
     applevel_types = [],
     T = rffi.SIGNEDCHAR,
 )
+class W_Int8Dtype(W_Int8Dtype):
+    def unwrap(self, space, w_item):
+        return self.adapt_val(space.int_w(space.int(w_item)))
+
 W_Int32Dtype = create_low_level_dtype(
     num = 5, kind = SIGNEDLTR, name = "int32",
     aliases = ["i"],
     applevel_types = [],
     T = rffi.INT,
 )
+class W_Int32Dtype(W_Int32Dtype):
+    def unwrap(self, space, w_item):
+        return self.adapt_val(space.int_w(space.int(w_item)))
+
 W_LongDtype = create_low_level_dtype(
     num = 7, kind = SIGNEDLTR, name = "???",
     aliases = ["l"],
@@ -248,6 +256,7 @@
 class W_Int64Dtype(W_Int64Dtype):
     def unwrap(self, space, w_item):
         return self.adapt_val(space.int_w(space.int(w_item)))
+
 W_Float64Dtype = create_low_level_dtype(
     num = 12, kind = FLOATINGLTR, name = "float64",
     aliases = [],
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to