[Python-Dev] BufferedReader.peek() ignores its argument (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Apr 5 03:03:23 CEST 2009
- Previous message: [Python-Dev] 3.1 beta is closer than you think
- Next message: [Python-Dev] BufferedReader.peek() ignores its argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
Thanks for your advice,
Antoine.
- Previous message: [Python-Dev] 3.1 beta is closer than you think
- Next message: [Python-Dev] BufferedReader.peek() ignores its argument
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]