[Python-checkins] gh-89158: Add some REPL secondary prompt markers (#93073)
terryjreedy
webhook-mailer at python.org
Mon May 23 00:58:40 EDT 2022
https://github.com/python/cpython/commit/88f0d0c1e8fdda036f3f64b0048911ba28ce7f06
commit: 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06
branch: main
author: Nicolas Haller <nicolas at haller.im>
committer: terryjreedy <tjreedy at udel.edu>
date: 2022-05-23T00:58:07-04:00
summary:
gh-89158: Add some REPL secondary prompt markers (#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.
files:
M Doc/tutorial/classes.rst
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index f44cb0b4e905a..58b06eb5f2535 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
More information about the Python-checkins
mailing list