mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-99087: Add missing newline for prompts in docs (GH-98993)
Add newline for prompts so copying to REPL does not cause errors.
This commit is contained in:
parent
3e06b5030b
commit
286e3c76a9
22 changed files with 43 additions and 0 deletions
|
@ -158,6 +158,7 @@ And a function to display the chores for a given day::
|
|||
... for chore, days in chores.items():
|
||||
... if day in days:
|
||||
... print(chore)
|
||||
...
|
||||
>>> show_chores(chores_for_ethan, Weekday.SATURDAY)
|
||||
answer SO questions
|
||||
|
||||
|
@ -712,6 +713,7 @@ It is also possible to name the combinations::
|
|||
... W = 2
|
||||
... X = 1
|
||||
... RWX = 7
|
||||
...
|
||||
>>> Perm.RWX
|
||||
<Perm.RWX: 7>
|
||||
>>> ~Perm.RWX
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue