Re: urllib slow on Leopard

2008-02-26 Thread Paul Boddie
On 24 Feb, 22:14, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > It likely tries to load the DTD in the background, which requires network > access. > > http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic This is principally concerned with the standard library XML modules, not url

Re: urllib slow on Leopard

2008-02-25 Thread mark
mark 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 >

Re: urllib slow on Leopard

2008-02-24 Thread Stefan Behnel
mark 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

Re: urllib slow on Leopard

2008-02-24 Thread André
On Feb 24, 3:57 pm, mark <[EMAIL PROTECTED]> 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 t

Re: urllib slow on Leopard

2008-02-24 Thread James Matthews
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 <[EMAIL PROTECTED]> 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 >

urllib slow on Leopard

2008-02-24 Thread mark
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('htt