Author: Alex Gaynor <[email protected]>
Branch: numpy-dtype-alt
Changeset: r46587:8da3c3b0c350
Date: 2011-08-18 00:54 -0500
http://bitbucket.org/pypy/pypy/changeset/8da3c3b0c350/

Log:    random prodding at 2 more things. I now have *0* idea why this
        doesn't work.

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
@@ -276,6 +276,9 @@
     applevel_types =[],
     T = rffi.USHORT,
 )
+class W_Float16Dtype(W_Float16Dtype):
+    def unwrap(self, space, w_item):
+        return self.adapt_val(space.float_w(space.float(w_item)))
 
 ALL_DTYPES = [
     W_BoolDtype,
diff --git a/pypy/module/micronumpy/interp_numarray.py 
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -21,6 +21,8 @@
 slice_driver2 = jit.JitDriver(greens=['signature'], reds=['i', 'j', 'step', 
'stop', 'source', 'dest'])
 
 class BaseArray(Wrappable):
+    signature = None
+
     def __init__(self):
         self.invalidates = []
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to