Remove CSV library
opened this issue · comments
This CSV library was indeed a mistake, it needs to go.
Detecting the end of the file is near impossible, or I'm not looking in the right place, it throws stop iteration unexpectedly...
It's pretty much garbage IMO.
Does this help?
Basically you only know you've run out after you've run out. So you could wrap the reader iterator, e.g. as follows:
def isLast(itr):
old = itr.next()
for new in itr:
yield False, old
old = new
yield True, old
It's been removed.