]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-110383: Improve 'old string formatting' text in tutorial (#120219)
authorErlend E. Aasland <erlend@python.org>
Fri, 7 Jun 2024 13:37:18 +0000 (15:37 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Jun 2024 13:37:18 +0000 (15:37 +0200)
Doc/tutorial/inputoutput.rst

index 857068a51ab843c698f6c08a5090fee7e15c995a..b93a0e8cec2d38a39ceac49ae323774ad6744a61 100644 (file)
@@ -279,9 +279,11 @@ left with zeros.  It understands about plus and minus signs::
 Old string formatting
 ---------------------
 
-The % operator (modulo) can also be used for string formatting. Given ``'string'
-% values``, instances of ``%`` in ``string`` are replaced with zero or more
-elements of ``values``. This operation is commonly known as string
+The % operator (modulo) can also be used for string formatting.
+Given ``format % values`` (where *format* is a string),
+``%`` conversion specifications in *format* are replaced with
+zero or more elements of *values*.
+This operation is commonly known as string
 interpolation. For example::
 
    >>> import math