https://github.com/python/cpython/commit/65357032e80f8750dd102c82a8adc54de067fc38
commit: 65357032e80f8750dd102c82a8adc54de067fc38
branch: main
author: 180909 <wjh180...@gmail.com>
committer: hugovk <1324225+hug...@users.noreply.github.com>
date: 2025-04-10T14:21:32+03:00
summary:

gh-72631: Fix wrong documentation for GzipFile.peek (#29820)

Co-authored-by: Hugo van Kemenade <hug...@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erl...@python.org>

files:
M Doc/library/gzip.rst

diff --git a/Doc/library/gzip.rst b/Doc/library/gzip.rst
index f24e73517e5767..4222f1bb1f49ae 100644
--- a/Doc/library/gzip.rst
+++ b/Doc/library/gzip.rst
@@ -122,9 +122,7 @@ The module defines the following items:
    .. method:: peek(n)
 
       Read *n* uncompressed bytes without advancing the file position.
-      At most one single read on the compressed stream is done to satisfy
-      the call.  The number of bytes returned may be more or less than
-      requested.
+      The number of bytes returned may be more or less than requested.
 
       .. note:: While calling :meth:`peek` does not change the file position of
          the :class:`GzipFile`, it may change the position of the underlying

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to