Author sspapilin
Recipients sspapilin
Date 2012-06-04.20:14:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1338840881.84.0.164546182047.issue15002@psf.upfronthosting.co.za>
In-reply-to
Content
File test.py is

#!/usr/bin/env python
import urllib2
print urllib2.urlopen('ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest').read()

When I issue

python test.py > out.txt

, I get file about 100KB in size, the beginning of the actual file. I repeated it a hundred times, and almost every time I get 98305 byte file, and a couple of times a 49153 bytes or 188417 bytes file.

When I replace urllib2 with urllib in test.py, I get full (4 MB) file.

I have Ubuntu 12.04 64-bit, Python 2.7.3 (from default Ubuntu repository, up-to-date as of 4-june-2012) and slow, 64KB/s, Internet connection.

However, I asked my friend with Windows and faster connection to check it, and he got partial download as well, while he had another size of partial file (50109 bytes). I do not know his OS ant Python versions.
History
Date User Action Args
2012-06-04 20:14:41sspapilinsetrecipients: + sspapilin
2012-06-04 20:14:41sspapilinsetmessageid: <1338840881.84.0.164546182047.issue15002@psf.upfronthosting.co.za>
2012-06-04 20:14:41sspapilinlinkissue15002 messages
2012-06-04 20:14:40sspapilincreate