[ python-Bugs-1503157 ] "/".join() throws OverflowError
SourceForge.net
noreply at sourceforge.net
Fri Jun 9 00:40:41 CEST 2006
Bugs item #1503157, was opened at 2006-06-09 05:58
Message generated for change (Comment added) made by perky
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1503157&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Wummel (calvin)
>Assigned to: Tim Peters (tim_one)
Summary: "/".join() throws OverflowError
Initial Comment:
I noticed a regression in string.join() behaviour:
Running under Python 2.4 works:
$ python2.4
Python 2.4.4c0 (#2, Apr 22 2006, 22:39:06)
[GCC 4.0.3 (Debian 4.0.3-1)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> "/".join([u"", u"2"])
u'/2'
>>>
Running under Python 2.5 SVN build fails:
$ python2.5
Python 2.5a2 (trunk:46757, Jun 8 2006, 22:20:31)
[GCC 4.1.2 20060604 (prerelease) (Debian 4.1.1-2)] on
linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> "/".join([u"", u"2"])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: join() is too long for a Python string
>>>
----------------------------------------------------------------------
>Comment By: Hye-Shik Chang (perky)
Date: 2006-06-09 07:40
Message:
Logged In: YES
user_id=55188
That occurrs when join sequence includes a zero-length
unicode object after Tim's r46084.
I attached a patch but can't sure that it's correct fix yet. :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1503157&group_id=5470
More information about the Python-bugs-list
mailing list