2008/11/20 Ryan May [EMAIL PROTECTED]:
I've attached a simple patch that changes the check for seek() to a
check for readline(). I'll punt on my idea of just using iterators,
since that seems like slightly greater complexity for no gain. (I'm not
sure how many people end up with data in a
Hi,
Does anyone know why numpy.loadtxt(), in checking the validity of a
filehandle, checks for the seek() method, which appears to have no
bearing on whether an object will work?
I'm trying to use loadtxt() directly with the file-like object returned
by urllib2.urlopen(). If I change the check
Stéfan van der Walt wrote:
2008/11/20 Ryan May [EMAIL PROTECTED]:
Does anyone know why numpy.loadtxt(), in checking the validity of a
filehandle, checks for the seek() method, which appears to have no
bearing on whether an object will work?
I think this is simply a naive mistake on my part.