[pypy-svn] r52281 - pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk

tverwaes at codespeak.net tverwaes at codespeak.net
Sat Mar 8 03:11:35 CET 2008


Author: tverwaes
Date: Sat Mar  8 03:11:29 2008
New Revision: 52281

Modified:
   pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
Log:
added comment


Modified: pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py
==============================================================================
--- pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py	(original)
+++ pypy/branch/smalltalk-shadow-changes/pypy/lang/smalltalk/model.py	Sat Mar  8 03:11:29 2008
@@ -209,6 +209,11 @@
             shadow = TheClass(self)
             self._shadow = shadow
         shadow.check_for_updates()
+        # XXX
+        # Should only invalidate when we write to the instance...
+        # For now easier to always invalidate when the shadow is 
+        # requested lokaly. Probably the w_self is invalid
+        # afterwards anyway (currently only for contexts however...)
         shadow.invalidate_w_self()
         return shadow
 



More information about the Pypy-commit mailing list