[pypy-svn] r9536 - pypy/dist/pypy/translator
tismer at codespeak.net
tismer at codespeak.net
Tue Mar 1 11:17:24 CET 2005
Author: tismer
Date: Tue Mar 1 11:17:24 2005
New Revision: 9536
Modified:
pypy/dist/pypy/translator/geninterplevel.py
Log:
disabled metaclass change in geninterplevel.
This behavior is controlled by pypy's cmd line options.
Modified: pypy/dist/pypy/translator/geninterplevel.py
==============================================================================
--- pypy/dist/pypy/translator/geninterplevel.py (original)
+++ pypy/dist/pypy/translator/geninterplevel.py Tue Mar 1 11:17:24 2005
@@ -637,11 +637,11 @@
# exception are defined on the space
return 'space.w_%s' % cls.__name__
- # For the moment, use old-style classes exactly when the
- # pypy source uses old-style classes, to avoid strange problems.
if not isinstance(cls, type):
assert type(cls) is type(Exception)
- metaclass = 'space.w_classobj'
+ # do *not* change metaclass, but leave the
+ # decision to what PyPy thinks is correct.
+ # metaclass = 'space.w_classobj'
basenames = [self.nameof(base) for base in cls.__bases__]
def initclassobj():
More information about the Pypy-commit
mailing list