[pypy-svn] r15224 - pypy/dist/pypy/translator
tismer at codespeak.net
tismer at codespeak.net
Thu Jul 28 10:52:16 CEST 2005
Author: tismer
Date: Thu Jul 28 10:52:15 2005
New Revision: 15224
Modified:
pypy/dist/pypy/translator/geninterplevel.py
Log:
tried to speed up marshal by globally loading builtin functions.
The effect was slightly negative, probably because some more
functions get pulled early, even if they arenot needed.
kept the code, but disabled it.
Modified: pypy/dist/pypy/translator/geninterplevel.py
==============================================================================
--- pypy/dist/pypy/translator/geninterplevel.py (original)
+++ pypy/dist/pypy/translator/geninterplevel.py Thu Jul 28 10:52:15 2005
@@ -634,7 +634,11 @@
base_class = None
base = cls
def initinstance():
- content = instance.__dict__.items()
+ try:
+ content = instance.__dict__.items()
+ except AttributeError:
+ import pdb
+ pdb.set_trace() ##!!
content.sort()
for key, value in content:
if self.should_translate_attr(instance, key):
More information about the Pypy-commit
mailing list