Author: Anton Gulenko <anton.gule...@googlemail.com> Branch: storage Changeset: r705:f7c638fc25ac Date: 2014-03-27 10:32 +0100 http://bitbucket.org/pypy/lang-smalltalk/changeset/f7c638fc25ac/
Log: Only ClassShadow provides information for printing their objects. diff --git a/spyvm/shadow.py b/spyvm/shadow.py --- a/spyvm/shadow.py +++ b/spyvm/shadow.py @@ -11,7 +11,7 @@ can be attached at run-time to any Smalltalk object. """ _attrs_ = ['_w_self', 'space'] - provides_getname = True + provides_getname = False def __init__(self, space, w_self): self.space = space @@ -41,7 +41,6 @@ class ListStorageShadow(AbstractShadow): _attrs_ = ['storage'] - provides_getname = False def __init__(self, space, w_self, size): AbstractShadow.__init__(self, space, w_self) @@ -62,7 +61,6 @@ class WeakListStorageShadow(AbstractShadow): _attrs_ = ['storage'] - provides_getname = False def __init__(self, space, w_self, size): AbstractShadow.__init__(self, space, w_self) @@ -82,7 +80,6 @@ _attrs_ = ['version'] import_from_mixin(version.VersionMixin) version = None - provides_getname = True def __init__(self, space, w_self): ListStorageShadow.__init__(self, space, w_self, 0) @@ -112,6 +109,7 @@ _attrs_ = ["name", "_instance_size", "instance_varsized", "instance_kind", "_s_methoddict", "_s_superclass", "subclass_s"] name = None + provides_getname = True def __init__(self, space, w_self): # fields added here should also be in objspace.py:56ff, 300ff _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit