urllib slow on Leopard

James Matthews nytrokiss at gmail.com
Sun Feb 24 15:45:16 EST 2008


Try running the script when python is running as root. I has issues like
this also!

On Sun, Feb 24, 2008 at 8:57 PM, mark <me at privacy.net> wrote:

> I've recently switched from Ubuntu to OS X Leopard. I have some python
> scripts which download info from the web. The scripts were working fine
> before on Ubuntu, but urllib seems to work really slowly on Leopard.
>
> I tried an example from the docs:
>
>  >>> import urllib2
>  >>> f = urllib2.urlopen('http://www.python.org/'<http://www.python.org/%27>
> )
>  >>> print f.read(100)
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtm
>  >>>
>
> The line f = ... takes about a minute to return - but otherwise returns
> the predicted result. My web connection seems fine, so has anyone got
> any ideas as to what the problem might be?
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
http://search.goldwatches.com/?Search=Movado+Watches
http://www.jewelerslounge.com
http://www.goldwatches.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080224/83add58b/attachment-0001.html>


More information about the Python-list mailing list