strange problems with urllib2

jdonnell jaydonnell at gmail.com
Thu Oct 27 00:11:28 CEST 2005


When I run this code on windows it runs quickly (about a second per
image) but when I run it on linux it runs very very slowly (10+ seconds
per image). Is this a bug or am I missing something? On windows I tried
2.4.2 and 2.4.1 on linux i'm running 2.4.1

print 'starting'
f =
urllib2.urlopen('http://site.heavenlytreasures.com/images/e6115.jpg')
outfile = open('e6115.jpg', 'wb')
outfile.write(f.read())
outfile.close()
f.close()
print 'finished'




More information about the Python-list mailing list