https://github.com/python/cpython/commit/3cd4c2db7bebc63b9773d0cda5ae1ea7b3a1b634
commit: 3cd4c2db7bebc63b9773d0cda5ae1ea7b3a1b634
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com>
date: 2025-05-08T09:28:58Z
summary:

[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+stanfromirel...@users.noreply.github.com>
Co-authored-by: Chris Markiewicz <effig...@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-tur...@users.noreply.github.com>

files:
M Doc/tutorial/introduction.rst

diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index bec5da8fd759ac..cdb35da7bc95ba 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

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to