Python urllib2 read return different results for a ftp request, why? <p>I ran into some werid behavior, these two functions echo different sizes always. The first one echoes certain and right result, while the second one echoes random wrong results, is there anyone who knows why? I am using Python 2.7.10.</p> <pre><code>import urllib2 url = 'ftp://ftp.ripe.net/pub/stats/ripencc/delegated-ripencc-extended-latest' def one(): response = urllib2.urlopen(url) data = response.read() print len(data) def two(): print len(urllib2.urlopen(url).read()) one() two() </code></pre>