[pypy-svn] r13658 - pypy/dist/pypy/annotation
ac at codespeak.net
ac at codespeak.net
Tue Jun 21 17:58:28 CEST 2005
Author: ac
Date: Tue Jun 21 17:58:27 2005
New Revision: 13658
Modified:
pypy/dist/pypy/annotation/unaryop.py
Log:
in the case of a empty list .join returns an empty string constant
Modified: pypy/dist/pypy/annotation/unaryop.py
==============================================================================
--- pypy/dist/pypy/annotation/unaryop.py (original)
+++ pypy/dist/pypy/annotation/unaryop.py Tue Jun 21 17:58:27 2005
@@ -291,6 +291,9 @@
def method_join(str, s_list):
getbookkeeper().count("str_join", str)
+ s_item = s_list.listdef.read_item()
+ if s_item == SomeImpossibleValue():
+ return immutablevalue("")
return SomeString()
def iter(str):
More information about the Pypy-commit
mailing list