mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-33892: Doc: Use gender neutral words (GH-7770)
This commit is contained in:
parent
9d49f85064
commit
5092439c2c
8 changed files with 20 additions and 20 deletions
|
@ -143,12 +143,12 @@ to escape quotes::
|
|||
"doesn't"
|
||||
>>> "doesn't" # ...or use double quotes instead
|
||||
"doesn't"
|
||||
>>> '"Yes," he said.'
|
||||
'"Yes," he said.'
|
||||
>>> "\"Yes,\" he said."
|
||||
'"Yes," he said.'
|
||||
>>> '"Isn\'t," she said.'
|
||||
'"Isn\'t," she said.'
|
||||
>>> '"Yes," they said.'
|
||||
'"Yes," they said.'
|
||||
>>> "\"Yes,\" they said."
|
||||
'"Yes," they said.'
|
||||
>>> '"Isn\'t," they said.'
|
||||
'"Isn\'t," they said.'
|
||||
|
||||
In the interactive interpreter, the output string is enclosed in quotes and
|
||||
special characters are escaped with backslashes. While this might sometimes
|
||||
|
@ -159,10 +159,10 @@ enclosed in single quotes. The :func:`print` function produces a more
|
|||
readable output, by omitting the enclosing quotes and by printing escaped
|
||||
and special characters::
|
||||
|
||||
>>> '"Isn\'t," she said.'
|
||||
'"Isn\'t," she said.'
|
||||
>>> print('"Isn\'t," she said.')
|
||||
"Isn't," she said.
|
||||
>>> '"Isn\'t," they said.'
|
||||
'"Isn\'t," they said.'
|
||||
>>> print('"Isn\'t," they said.')
|
||||
"Isn't," they said.
|
||||
>>> s = 'First line.\nSecond line.' # \n means newline
|
||||
>>> s # without print(), \n is included in the output
|
||||
'First line.\nSecond line.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue