]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Doc: Allow translating a code block in the tutorial (GH-131353) (#133649)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 May 2025 09:29:34 +0000 (11:29 +0200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 09:29:34 +0000 (09:29 +0000)
Doc: Allow translating a code block in the tutorial (GH-131353)
(cherry picked from commit 3224b99872d8ed030181e5d009ea64e8672a68ee)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Chris Markiewicz <effigies@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Doc/tutorial/introduction.rst

index bec5da8fd759acd0cb5e57cfc0af1f9b9755eb22..cdb35da7bc95baf2fcd5bf6da7e7f570ff85d0c4 100644 (file)
@@ -147,6 +147,8 @@ Python can manipulate text (represented by type :class:`str`, so-called
 "``Yay! :)``". They can be enclosed in single quotes (``'...'``) or double
 quotes (``"..."``) with the same result [#]_.
 
+.. code-block:: pycon
+
    >>> 'spam eggs'  # single quotes
    'spam eggs'
    >>> "Paris rabbit got your back :)! Yay!"  # double quotes