> > Aha! It actually seems that your read() and readline() are > > inconsistent! > > They are because I haven't yet found a way to implement > readline() without buffering read-ahead data. The only way > I can think of to implement it without buffering would be > to read one char at a time which is much too slow. > > Buffering is hard to implement right when assuming that > streams are stacked... every level would have its own > buffering scheme and mixing .read() and .readline() > wouldn't work too well. Anyway, I'll give it try... Since you're calling methods on the underlying file object anyway, can't you avoid buffering by calling the *corresponding* underlying method and doing the conversion on that? --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4