[Python-Dev] BufferedReader.peek() ignores its argument (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sun Apr 5 12:19:46 CEST 2009
- Previous message: [Python-Dev] BufferedReader.peek() ignores its argument
- Next message: [Python-Dev] Should I/O object wrappers close their underlying buffer when deleted?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-Dev] BufferedReader.peek() ignores its argument
- Next message: [Python-Dev] Should I/O object wrappers close their underlying buffer when deleted?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]