[pypy-commit] pypy numpy-subarrays: fix translation
mattip
noreply at buildbot.pypy.org
Sun May 12 07:40:04 CEST 2013
Author: Matti Picus <matti.picus at gmail.com>
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)
More information about the pypy-commit
mailing list