[pypy-commit] pypy numpy-dtype-alt: random prodding at 2 more things. I now have *0* idea why this doesn't work.
alex_gaynor
noreply at buildbot.pypy.org
Thu Aug 18 07:50:32 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
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 = []
More information about the pypy-commit
mailing list