summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial/classes.rst
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-23 05:17:15 (GMT)
committerGitHub <noreply@github.com>2022-05-23 05:17:15 (GMT)
commitc8f1095e0a13c943eeca50802887fce4a9a7decc (patch)
treec80552cec851db3c1202bc300788e4700f5296fe /Doc/tutorial/classes.rst
parent936eefcb820a02e6fad3c8128e89494e6b958717 (diff)
downloadcpython-c8f1095e0a13c943eeca50802887fce4a9a7decc.zip
cpython-c8f1095e0a13c943eeca50802887fce4a9a7decc.tar.gz
cpython-c8f1095e0a13c943eeca50802887fce4a9a7decc.tar.bz2
gh-89158: Add some REPL secondary prompt markers (GH-93073)
This fixes an issue on tutorial/classes.rst section 9.4 where the example "class Warehouse" was truncated when pressing the >>> button to hide the prompts and output. (cherry picked from commit 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06) Co-authored-by: Nicolas Haller <nicolas@haller.im>
Diffstat (limited to 'Doc/tutorial/classes.rst')
-rw-r--r--Doc/tutorial/classes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index f44cb0b..58b06eb 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -479,9 +479,9 @@ If the same attribute name occurs in both an instance and in a class,
then attribute lookup prioritizes the instance::
>>> class Warehouse:
- purpose = 'storage'
- region = 'west'
-
+ ... purpose = 'storage'
+ ... region = 'west'
+ ...
>>> w1 = Warehouse()
>>> print(w1.purpose, w1.region)
storage west