[Python-checkins] bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29119)

encukou webhook-mailer at python.org
Thu Oct 21 08:41:50 EDT 2021


https://github.com/python/cpython/commit/00ddc1fbd7296ffe066077194a895b175cca26de
commit: 00ddc1fbd7296ffe066077194a895b175cca26de
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: encukou <encukou at gmail.com>
date: 2021-10-21T14:41:32+02:00
summary:

bpo-34451: Document prompt and output toggle feature in html tutorial (GH-27105) (GH-29119)

(cherry picked from commit 5a14f71fe869d4a62dcdeb9a8fbbb5884c75060c)

Co-authored-by: Thomas <thmsdnnr at gmail.com>

files:
M Doc/tutorial/introduction.rst

diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst
index 8763626ef553b..33678f5a64b1f 100644
--- a/Doc/tutorial/introduction.rst
+++ b/Doc/tutorial/introduction.rst
@@ -11,6 +11,13 @@ with a prompt are output from the interpreter. Note that a secondary prompt on a
 line by itself in an example means you must type a blank line; this is used to
 end a multi-line command.
 
+.. only:: html
+
+   You can toggle the display of prompts and output by clicking on ``>>>``
+   in the upper-right corner of an example box.  If you hide the prompts
+   and output for an example, then you can easily copy and paste the input
+   lines into your interpreter.
+
 .. index:: single: # (hash); comment
 
 Many of the examples in this manual, even those entered at the interactive



More information about the Python-checkins mailing list