diff options
author | Nicolas Haller <nicolas@haller.im> | 2022-05-23 04:58:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 04:58:07 (GMT) |
commit | 88f0d0c1e8fdda036f3f64b0048911ba28ce7f06 (patch) | |
tree | 022a32c34fc40f18e164ab65d0467fecb98213e8 /Doc/tutorial | |
parent | 9bc616cb4cd0610c21611554b50791f4d4c850e8 (diff) | |
download | cpython-88f0d0c1e8fdda036f3f64b0048911ba28ce7f06.zip cpython-88f0d0c1e8fdda036f3f64b0048911ba28ce7f06.tar.gz cpython-88f0d0c1e8fdda036f3f64b0048911ba28ce7f06.tar.bz2 |
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.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r-- | Doc/tutorial/classes.rst | 6 |
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 |