This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author keakon
Recipients keakon
Date 2015-11-16.13:47:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447681631.39.0.26682578174.issue25635@psf.upfronthosting.co.za>
In-reply-to
Content
I found the bug from this slide: http://sector.ca/Portals/17/Presentations15/SecTor_Branca.pdf

The second way cannot fully read the file.

import urllib2

url = 'ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest'
response = urllib2.urlopen(url)
data = response.read()
print len(data)  # 6653498

data = urllib2.urlopen(url).read()
print len(data)  # 65536


It might be something wrong with the FTP server. It's OK when I read from my own FTP server.
History
Date User Action Args
2015-11-16 13:47:11keakonsetrecipients: + keakon
2015-11-16 13:47:11keakonsetmessageid: <1447681631.39.0.26682578174.issue25635@psf.upfronthosting.co.za>
2015-11-16 13:47:11keakonlinkissue25635 messages
2015-11-16 13:47:10keakoncreate