[pypy-svn] r52680 - pypy/dist/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Tue Mar 18 12:13:39 CET 2008
Author: arigo
Date: Tue Mar 18 12:13:37 2008
New Revision: 52680
Modified:
pypy/dist/pypy/objspace/std/ropeobject.py
Log:
This assert ends up in the translation and forces additional_info
to be computed for all rope nodes... Bad
Modified: pypy/dist/pypy/objspace/std/ropeobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/ropeobject.py (original)
+++ pypy/dist/pypy/objspace/std/ropeobject.py Tue Mar 18 12:13:37 2008
@@ -18,7 +18,8 @@
from pypy.objspace.std.stringtype import str_typedef as typedef
def __init__(w_self, node):
- assert node.is_bytestring()
+ if not we_are_translated():
+ assert node.is_bytestring()
w_self._node = node
def __repr__(w_self):
More information about the Pypy-commit
mailing list