[Python-checkins] r84977 - python/branches/py3k/Doc/library/gzip.rst
antoine.pitrou
python-checkins at python.org
Thu Sep 23 18:45:17 CEST 2010
Author: antoine.pitrou
Date: Thu Sep 23 18:45:17 2010
New Revision: 84977
Log:
Small fixes in the gzip docs
Modified:
python/branches/py3k/Doc/library/gzip.rst
Modified: python/branches/py3k/Doc/library/gzip.rst
==============================================================================
--- python/branches/py3k/Doc/library/gzip.rst (original)
+++ python/branches/py3k/Doc/library/gzip.rst Thu Sep 23 18:45:17 2010
@@ -62,11 +62,12 @@
Calling a :class:`GzipFile` object's :meth:`close` method does not close
*fileobj*, since you might wish to append more material after the compressed
- data. This also allows you to pass a :class:`StringIO` object opened for
+ data. This also allows you to pass a :class:`io.BytesIO` object opened for
writing as *fileobj*, and retrieve the resulting memory buffer using the
- :class:`StringIO` object's :meth:`getvalue` method.
+ :class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method.
- :class:`GzipFile` supports iteration and the :keyword:`with` statement.
+ :class:`GzipFile` supports the whole :class:`io.BufferedIOBase` interface,
+ including iteration and the :keyword:`with` statement.
.. versionchanged:: 3.1
Support for the :keyword:`with` statement was added.
More information about the Python-checkins
mailing list