Problem with urllib

Jean-Paul Mi=?ISO-8859-1?B?6Q==?=ville jpmieville at bluewin.ch
Thu Sep 19 15:08:52 EDT 2002


Yes,

I use :
Python 2.2.1 (#134, Apr  9 2002, 21:16:52)  [CW CARBON GUSI2 THREADS GC]
Type "copyright", "credits" or "license" for more information.
MacPython IDE 1.0.1

I don't know if this problem is related to MacPython.



> From: Jeff Davis <jdavis at empires.org>
> Organization: RoadRunner - West
> Newsgroups: comp.lang.python
> Date: Thu, 19 Sep 2002 04:26:49 GMT
> Subject: Re: Problem with urllib
> 
> 
> I can't reproduce the error either way (interactive or otherwise). Are you
> use that you're using the same python interpreter version for both?
> 
> Regards,
> Jeff
> 
> Jean-Paul Mi?ville wrote:
> 
>> I don't understand why with some URL I have got [Errno 57] Socket is not
>> connected.
>> 
>> The code is :
>> 
>> import urllib2
>> 
>> page = urllib2.urlopen(' http://www.python.org/doc/NonEnglish.html')
>> print page.read()
>> 
>> If I do the same thing with python interactive, I can't reproduce the
>> error.
>> 
>> Thanks in advance,
>> Jean-Paul
> 




More information about the Python-list mailing list