]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: Add omitted secondary prompt in inputoutput tutorial (GH-30317) (#95159)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 23 Jul 2022 10:28:15 +0000 (03:28 -0700)
committerGitHub <noreply@github.com>
Sat, 23 Jul 2022 10:28:15 +0000 (18:28 +0800)
For the continuation lines, "..." should present as secondary prompt
(cherry picked from commit de28ee8f755760fda13b481a34b1f326984d293a)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Doc/tutorial/inputoutput.rst

index 324238228d62659bbaa76007557cd12019650e3e..d3414005a534352a5d87b554d827e05a5a4b74b9 100644 (file)
@@ -166,7 +166,7 @@ are referred to by using the name of the argument. ::
 Positional and keyword arguments can be arbitrarily combined::
 
    >>> print('The story of {0}, {1}, and {other}.'.format('Bill', 'Manfred',
-                                                          other='Georg'))
+   ...                                                    other='Georg'))
    The story of Bill, Manfred, and Georg.
 
 If you have a really long format string that you don't want to split up, it