From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 3 Mar 2022 01:45:36 +0000 (-0800) Subject: bpo-21910: Clarify docs for codecs writelines method (GH-31245) X-Git-Tag: v3.9.11~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf8aff6319794807aa578215710e6caa4479516f;p=thirdparty%2FPython%2Fcpython.git bpo-21910: Clarify docs for codecs writelines method (GH-31245) Co-authored-by: Jelle Zijlstra (cherry picked from commit a8c87a239ee1414d6dd0b062fe9ec3e5b0c50cb8) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com> --- diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 2f7497c0c493..3386208d5ef5 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -691,8 +691,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.