A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-April/088225.html below:

[Python-Dev] BufferedReader.peek() ignores its argument

[Python-Dev] BufferedReader.peek() ignores its argument [Python-Dev] BufferedReader.peek() ignores its argumentBenjamin Peterson benjamin at python.org
Sun Apr 5 03:11:50 CEST 2009
2009/4/4 Antoine Pitrou <solipsis at pitrou.net>:
> Hello,
>
> Currently, BufferedReader.peek() ignores its argument and can return more or
> less than the number of bytes requested by the user. This is how it was
> implemented in the Python version, and we've reflected this in the C version.
>
> It seems a bit strange and unhelpful though. Should we change the implementation
> so that the argument to peek() becomes the upper bound to the number of bytes
> returned?

+1 That sounds more useful.

>
> Thanks for your advice,




-- 
Regards,
Benjamin
More information about the Python-Dev mailing list

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