]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-21910: Clarify docs for codecs writelines method (GH-31245)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 3 Mar 2022 01:43:00 +0000 (17:43 -0800)
committerGitHub <noreply@github.com>
Thu, 3 Mar 2022 01:43:00 +0000 (17:43 -0800)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit a8c87a239ee1414d6dd0b062fe9ec3e5b0c50cb8)

Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Doc/library/codecs.rst

index ef71832bcef1d365ff0ae059b34337ee308f5176..1a1ce9237b0102ca4c8b60def6966898f1220372 100644 (file)
@@ -694,8 +694,9 @@ compatible with the Python codec registry.
 
    .. method:: writelines(list)
 
-      Writes the concatenated list of strings to the stream (possibly by reusing
-      the :meth:`write` method). The standard bytes-to-bytes codecs
+      Writes the concatenated iterable of strings to the stream (possibly by reusing
+      the :meth:`write` method). Infinite or
+      very large iterables are not supported. The standard bytes-to-bytes codecs
       do not support this method.