From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 8 May 2025 09:28:58 +0000 (+0200) Subject: [3.14] Doc: Allow translating a code block in the tutorial (GH-131353) (#133648) X-Git-Tag: v3.14.0b2~233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3cd4c2db7bebc63b9773d0cda5ae1ea7b3a1b634;p=thirdparty%2FPython%2Fcpython.git [3.14] Doc: Allow translating a code block in the tutorial (GH-131353) (#133648) 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 Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --- diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index bec5da8fd759..cdb35da7bc95 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -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