[ python-Bugs-1123695 ] attempting to use urllib2 on some URLs fails starting on 2.4
SourceForge.net
noreply at sourceforge.net
Wed Feb 1 21:38:55 CET 2006
Bugs item #1123695, was opened at 2005-02-16 06:06
Message generated for change (Comment added) made by jjlee
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1123695&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.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Stephan Sokolow (ssokolow)
Assigned to: Nobody/Anonymous (nobody)
Summary: attempting to use urllib2 on some URLs fails starting on 2.4
Initial Comment:
The following will work correctly on Python 2.3.3 but fails
on Python 2.4
Python 2.4 (#1, Dec 4 2004, 01:33:42)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> import urllib2
>>>
urllib2.urlopen('http://www.fanfiction.net/s/636805/10/').read()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.4/socket.py", line 285, in read
data = self._sock.recv(recv_size)
File "/usr/local/lib/python2.4/httplib.py", line 456, in read
return self._read_chunked(amt)
File "/usr/local/lib/python2.4/httplib.py", line 495, in
_read_chunked
chunk_left = int(line, 16)
ValueError: invalid literal for int():
----------------------------------------------------------------------
Comment By: John J Lee (jjlee)
Date: 2006-02-01 20:38
Message:
Logged In: YES
user_id=261020
I can't reproduce this.
1. On what OS did you observe the failure?
2. Anybody have another example that does still trigger the bug?
----------------------------------------------------------------------
Comment By: Wummel (calvin)
Date: 2005-02-16 16:38
Message:
Logged In: YES
user_id=9205
This bug is in httplib.py, and I already submitted patch
900744. I wonder why on Python 2.3 it seems to work though,
it should fail the same way since this bug is also present
in Python 2.3. But it might be some change in urllib2 that
triggers this in Python 2.4 and not in Python 2.3.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1123695&group_id=5470
More information about the Python-bugs-list
mailing list