[pypy-commit] pypy numpy-newbyteorder: update immutable_fields on dtype

bdkearns noreply at buildbot.pypy.org
Thu Nov 14 09:33:58 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: numpy-newbyteorder
Changeset: r68020:022135968606
Date: 2013-11-14 03:29 -0500
http://bitbucket.org/pypy/pypy/changeset/022135968606/

Log:	update immutable_fields on dtype

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
@@ -35,7 +35,9 @@
     return out
 
 class W_Dtype(W_Root):
-    _immutable_fields_ = ["itemtype?", "num", "kind", "name?", "char", "w_box_type", "byteorder", "float_type"]
+    _immutable_fields_ = ["itemtype?", "num", "kind", "name?", "char",
+                          "w_box_type", "byteorder", "size?", "float_type",
+                          "fields?", "fieldnames?", "shape", "subdtype", "base"]
 
     def __init__(self, itemtype, num, kind, name, char, w_box_type, byteorder=NPY_NATIVE,
                  size=1, alternate_constructors=[], aliases=[], float_type=None,


More information about the pypy-commit mailing list