[pypy-svn] r9390 - pypy/dist/pypy/objspace/std
pedronis at codespeak.net
pedronis at codespeak.net
Mon Feb 21 22:44:49 CET 2005
Author: pedronis
Date: Mon Feb 21 22:44:48 2005
New Revision: 9390
Modified:
pypy/dist/pypy/objspace/std/objspace.py
Log:
sanity check that no app-level code has seen dummy old-style classes impls
Modified: pypy/dist/pypy/objspace/std/objspace.py
==============================================================================
--- pypy/dist/pypy/objspace/std/objspace.py (original)
+++ pypy/dist/pypy/objspace/std/objspace.py Mon Feb 21 22:44:48 2005
@@ -94,6 +94,8 @@
def setup_old_style_classes(self):
"""NOT_RPYTHON"""
from pypy.module import classobjinterp
+ # sanity check that this approach is working and is not too late
+ assert not self.is_true(self.contains(self.builtin.w_dict,self.wrap('_classobj')))
w_setup = classobjinterp.initclassobj(self)
w_classobj, w_instance, w_purify = self.unpackiterable(w_setup)
self.call_function(w_purify)
More information about the Pypy-commit
mailing list