[pypy-commit] pypy default: remove immutable fields for now, they don't obey rules
fijal
noreply at buildbot.pypy.org
Fri Aug 12 11:19:44 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r46460:8549d0ab37a5
Date: 2011-08-12 11:21 +0200
http://bitbucket.org/pypy/pypy/changeset/8549d0ab37a5/
Log: remove immutable fields for now, they don't obey rules
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
@@ -295,7 +295,6 @@
"""
Intermediate class representing a float literal.
"""
- _immutable_fields_ = ["float_value"]
signature = Signature()
def __init__(self, float_value):
@@ -356,8 +355,6 @@
class Call1(VirtualArray):
- _immutable_fields_ = ["function", "values"]
-
def __init__(self, function, values, signature):
VirtualArray.__init__(self, signature)
self.function = function
@@ -376,8 +373,6 @@
"""
Intermediate class for performing binary operations.
"""
- _immutable_fields_ = ["function", "left", "right"]
-
def __init__(self, function, left, right, signature):
VirtualArray.__init__(self, signature)
self.function = function
@@ -404,8 +399,6 @@
Class for representing views of arrays, they will reflect changes of parent
arrays. Example: slices
"""
- _immutable_fields_ = ["parent"]
-
def __init__(self, parent, signature):
BaseArray.__init__(self)
self.signature = signature
@@ -433,7 +426,6 @@
raise NotImplementedError
class SingleDimSlice(ViewArray):
- _immutable_fields_ = ["start", "stop", "step", "size"]
static_signature = Signature()
def __init__(self, start, stop, step, slice_length, parent, signature):
More information about the pypy-commit
mailing list