[Python-checkins] r73429 - python/branches/py3k/Doc/library/io.rst
benjamin.peterson
python-checkins at python.org
Sun Jun 14 16:37:23 CEST 2009
Author: benjamin.peterson
Date: Sun Jun 14 16:37:23 2009
New Revision: 73429
Log:
update peek documentation to implementation
Modified:
python/branches/py3k/Doc/library/io.rst
Modified: python/branches/py3k/Doc/library/io.rst
==============================================================================
--- python/branches/py3k/Doc/library/io.rst (original)
+++ python/branches/py3k/Doc/library/io.rst Sun Jun 14 16:37:23 2009
@@ -504,11 +504,9 @@
.. method:: peek([n])
- Return 1 (or *n* if specified) bytes from a buffer without advancing the
- position. Only a single read on the raw stream is done to satisfy the
- call. The number of bytes returned may be less than requested since at
- most all the buffer's bytes from the current position to the end are
- returned.
+ Return bytes from the stream without advancing the position. Only a
+ single read on the raw stream is done to satisfy the call. The number of
+ bytes returned may be less or more than requested.
.. method:: read([n])
More information about the Python-checkins
mailing list