Skip to content
Snippets Groups Projects
Unverified Commit c8f1095e authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub
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 88f0d0c1)

Co-authored-by: default avatarNicolas Haller <nicolas@haller.im>
parent 936eefcb
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment