[pypy-svn] r9993 - pypy/dist/pypy/objspace/std
tismer at codespeak.net
tismer at codespeak.net
Mon Mar 21 17:01:32 CET 2005
Author: tismer
Date: Mon Mar 21 17:01:31 2005
New Revision: 9993
Modified:
pypy/dist/pypy/objspace/std/stringobject.py
Log:
corrected string cast from derived string to pure
Modified: pypy/dist/pypy/objspace/std/stringobject.py
==============================================================================
--- pypy/dist/pypy/objspace/std/stringobject.py (original)
+++ pypy/dist/pypy/objspace/std/stringobject.py Mon Mar 21 17:01:31 2005
@@ -944,8 +944,9 @@
return space.wrap(len(w_str._value))
def str__String(space, w_str):
- return w_str
-
+ if type(w_str) is W_StringObject:
+ return w_str
+ return W_StringObject(space, w_str._value)
def iter__String(space, w_list):
from pypy.objspace.std import iterobject
More information about the Pypy-commit
mailing list