[pypy-svn] r10046 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Tue Mar 22 01:35:01 CET 2005
Author: tismer
Date: Tue Mar 22 01:35:01 2005
New Revision: 10046
Modified:
pypy/dist/pypy/objspace/std/typeobject.py
Log:
corrected __base__ initialization for heaptypes
Modified: pypy/dist/pypy/objspace/std/typeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/typeobject.py (original)
+++ pypy/dist/pypy/objspace/std/typeobject.py Tue Mar 22 01:35:01 2005
@@ -72,7 +72,10 @@
w_self.w_bestbase = w_most_derived_base_with_slots
else:
nslots = 0
-
+
+ if w_self.w_bestbase is None:
+ w_self.w_bestbase = bases_w[0]
+
wantdict = True
if '__slots__' in dict_w:
wantdict = False
More information about the Pypy-commit
mailing list