Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`f` might be iterable / iterator with completely different semantics than doing by-line iteration. And that might even be a good idea.


In this case it isn't though. And if it were, you could provide an `f.lines()` iterator. The code would be much nicer that way.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: