Author: Matti Picus <[email protected]>
Branch: numpy-subarrays
Changeset: r63998:e57bd2b23a7a
Date: 2013-05-12 08:38 +0300
http://bitbucket.org/pypy/pypy/changeset/e57bd2b23a7a/
Log: fix translation
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
@@ -46,7 +46,7 @@
class W_Dtype(W_Root):
- _immutable_fields_ = ["itemtype", "num", "kind"]
+ _immutable_fields_ = ["itemtype", "num", "kind", "shape"]
def __init__(self, itemtype, num, kind, name, char, w_box_type,
alternate_constructors=[], aliases=[],
@@ -63,7 +63,7 @@
self.fieldnames = fieldnames
self.native = native
self.float_type = None
- self.shape = shape
+ self.shape = list(shape)
self.subdtype = subdtype
@specialize.argtype(1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit