[pypy-svn] r17349 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Thu Sep 8 10:58:34 CEST 2005
Author: arigo
Date: Thu Sep 8 10:58:34 2005
New Revision: 17349
Modified:
pypy/dist/pypy/objspace/std/model.py
Log:
Replying to comment...
Modified: pypy/dist/pypy/objspace/std/model.py
==============================================================================
--- pypy/dist/pypy/objspace/std/model.py (original)
+++ pypy/dist/pypy/objspace/std/model.py Thu Sep 8 10:58:34 2005
@@ -121,8 +121,9 @@
def __init__(w_self, space):
w_self.space = space # XXX not sure this is ever used any more
- # YYY I think we need it for calling hash() from an ll dicts impl.
- # without explicitly passing the space.
+ # Note that it is wrong to depend on a .space attribute for a random
+ # wrapped object anyway, because not all wrapped objects inherit from
+ # W_Object. (They inherit from W_Root.)
def __repr__(self):
s = '%s(%s)' % (
More information about the Pypy-commit
mailing list