2009/4/4 Antoine Pitrou <[email protected]>: > 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 _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
