Problem with urllib
Jeff Davis
jdavis at empires.org
Thu Sep 19 00:26:49 EDT 2002
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