https://github.com/python/cpython/commit/3224b99872d8ed030181e5d009ea64e8672a68ee
commit: 3224b99872d8ed030181e5d009ea64e8672a68ee
branch: main
author: Stan Ulbrych <[email protected]>
committer: AA-Turner <[email protected]>
date: 2025-05-08T09:22:04Z
summary:

Doc: Allow translating a code block in the tutorial (#131353)

Co-authored-by: Chris Markiewicz <[email protected]>
Co-authored-by: Adam Turner <[email protected]>

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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to