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

Antoine Pitrou solipsis at pitrou.net
Sun Apr 5 12:19:46 CEST 2009


Alexandre Vassalotti <alexandre peadrop.com> writes:

I am not sure if this is a good idea. Currently, the argument of peek() is documented as a lower bound that cannot exceed the size of the buffer:

Unfortunately, in practice, the argument is neither a lower bound nor an upper bound. It's just used as some kind of internal heuristic (in the Python version) or not used at all (in the C version).

Regards

Antoine.



More information about the Python-Dev mailing list