aptiko/simpletail

StopIteration when reaching the beginning of the file

Closed this issue · 0 comments

Open a small file with ropen() and repeatedly run .readline(); eventually it will raise StopIteration. This is in contrast to the standard library's open(), which upon reaching the end of file merely returns an empty string.