From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 1 Apr 2021 06:10:38 +0000 (-0700) Subject: Doc: io: Remove "In-memory streams" section (GH-24927) X-Git-Tag: v3.8.9~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ea8b24027a514e47bc664e98070f2f2c04cff3f;p=thirdparty%2FPython%2Fcpython.git Doc: io: Remove "In-memory streams" section (GH-24927) (cherry picked from commit b045cdaf341f80b7d1e4804b932b6e415600c2e1) Co-authored-by: Inada Naoki --- diff --git a/Doc/library/io.rst b/Doc/library/io.rst index 32151a0ace45..6d51aa1c8e31 100644 --- a/Doc/library/io.rst +++ b/Doc/library/io.rst @@ -155,16 +155,6 @@ High-level Module Interface when an unsupported operation is called on a stream. -In-memory streams -^^^^^^^^^^^^^^^^^ - -It is also possible to use a :class:`str` or :term:`bytes-like object` as a -file for both reading and writing. For strings :class:`StringIO` can be used -like a file opened in text mode. :class:`BytesIO` can be used like a file -opened in binary mode. Both provide full read-write capabilities with random -access. - - .. seealso:: :mod:`sys`