A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-April/003284.html below:

[Python-Dev] Unicode input issues

[Python-Dev] Unicode input issues [Python-Dev] Unicode input issuesGuido van Rossum guido@python.org
Mon, 10 Apr 2000 11:56:26 -0400
> > 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