Skip to content

Commit 9a2fe42

Browse files
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 88f0d0c) Co-authored-by: Nicolas Haller <[email protected]>
1 parent 83aa0d1 commit 9a2fe42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/tutorial/classes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,9 @@ If the same attribute name occurs in both an instance and in a class,
479479
then attribute lookup prioritizes the instance::
480480

481481
>>> class Warehouse:
482-
purpose = 'storage'
483-
region = 'west'
484-
482+
... purpose = 'storage'
483+
... region = 'west'
484+
...
485485
>>> w1 = Warehouse()
486486
>>> print(w1.purpose, w1.region)
487487
storage west

0 commit comments

Comments
 (0)