Skip to content

Commit 88f0d0c

Browse files
authored
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.
1 parent 9bc616c commit 88f0d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/tutorial/classes.rst

+3-3
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)