[pypy-commit] pypy default: remove misleading _freeze_()
rlamy
noreply at buildbot.pypy.org
Sun Jun 1 21:54:39 CEST 2014
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch:
Changeset: r71797:04434aa772aa
Date: 2014-06-01 20:53 +0100
http://bitbucket.org/pypy/pypy/changeset/04434aa772aa/
Log: remove misleading _freeze_()
diff --git a/rpython/rtyper/rclass.py b/rpython/rtyper/rclass.py
--- a/rpython/rtyper/rclass.py
+++ b/rpython/rtyper/rclass.py
@@ -28,15 +28,15 @@
def __repr__(self):
return '<FieldListAccessor for %s>' % getattr(self, 'TYPE', '?')
- def _freeze_(self):
- return True
class ImmutableRanking(object):
def __init__(self, name, is_immutable):
self.name = name
self.is_immutable = is_immutable
+
def __nonzero__(self):
return self.is_immutable
+
def __repr__(self):
return '<%s>' % self.name
More information about the pypy-commit
mailing list