Skip to content

Commit 5f16585

Browse files
bpo-33892: Doc: Use gender neutral words (GH-7770)
(cherry picked from commit 5092439) Co-authored-by: Andrés Delfino <[email protected]>
1 parent 6bb7704 commit 5f16585

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

Doc/c-api/memory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ operate within the bounds of the private heap.
3535

3636
It is important to understand that the management of the Python heap is
3737
performed by the interpreter itself and that the user has no control over it,
38-
even if she regularly manipulates object pointers to memory blocks inside that
38+
even if they regularly manipulate object pointers to memory blocks inside that
3939
heap. The allocation of heap space for Python objects and other internal
4040
buffers is performed on demand by the Python memory manager through the Python/C
4141
API functions listed in this document.

Doc/distutils/builtdist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ specialty---writing code and creating source distributions---while an
2121
intermediary species called *packagers* springs up to turn source distributions
2222
into built distributions for as many platforms as there are packagers.
2323

24-
Of course, the module developer could be his own packager; or the packager could
24+
Of course, the module developer could be their own packager; or the packager could
2525
be a volunteer "out there" somewhere who has access to a platform which the
2626
original developer does not; or it could be software periodically grabbing new
2727
source distributions and turning them into built distributions for as many

Doc/distutils/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ containing your setup script :file:`setup.py`, and your module :file:`foo.py`.
9494
The archive file will be named :file:`foo-1.0.tar.gz` (or :file:`.zip`), and
9595
will unpack into a directory :file:`foo-1.0`.
9696

97-
If an end-user wishes to install your :mod:`foo` module, all she has to do is
97+
If an end-user wishes to install your :mod:`foo` module, all they have to do is
9898
download :file:`foo-1.0.tar.gz` (or :file:`.zip`), unpack it, and---from the
9999
:file:`foo-1.0` directory---run ::
100100

Doc/library/hashlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ on the hash function used in digital signatures.
546546
preparer, generates all or part of a message to be signed by a second
547547
party, the message signer. If the message preparer is able to find
548548
cryptographic hash function collisions (i.e., two messages producing the
549-
same hash value), then she might prepare meaningful versions of the message
549+
same hash value), then they might prepare meaningful versions of the message
550550
that would produce the same hash value and digital signature, but with
551551
different results (e.g., transferring $1,000,000 to an account, rather than
552552
$10). Cryptographic hash functions have been designed with collision

Doc/library/optparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ The callback function should raise :exc:`OptionValueError` if there are any
16771677
problems with the option or its argument(s). :mod:`optparse` catches this and
16781678
terminates the program, printing the error message you supply to stderr. Your
16791679
message should be clear, concise, accurate, and mention the option at fault.
1680-
Otherwise, the user will have a hard time figuring out what he did wrong.
1680+
Otherwise, the user will have a hard time figuring out what they did wrong.
16811681

16821682

16831683
.. _optparse-callback-example-1:

Doc/library/re.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,8 +1447,8 @@ Finding all Adverbs
14471447
^^^^^^^^^^^^^^^^^^^
14481448

14491449
:func:`findall` matches *all* occurrences of a pattern, not just the first
1450-
one as :func:`search` does. For example, if one was a writer and wanted to
1451-
find all of the adverbs in some text, he or she might use :func:`findall` in
1450+
one as :func:`search` does. For example, if a writer wanted to
1451+
find all of the adverbs in some text, they might use :func:`findall` in
14521452
the following manner::
14531453

14541454
>>> text = "He was carefully disguised but captured quickly by police."
@@ -1462,8 +1462,8 @@ Finding all Adverbs and their Positions
14621462
If one wants more information about all matches of a pattern than the matched
14631463
text, :func:`finditer` is useful as it provides :ref:`match objects
14641464
<match-objects>` instead of strings. Continuing with the previous example, if
1465-
one was a writer who wanted to find all of the adverbs *and their positions* in
1466-
some text, he or she would use :func:`finditer` in the following manner::
1465+
a writer wanted to find all of the adverbs *and their positions* in
1466+
some text, they would use :func:`finditer` in the following manner::
14671467

14681468
>>> text = "He was carefully disguised but captured quickly by police."
14691469
>>> for m in re.finditer(r"\w+ly", text):

Doc/library/ssl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ message with one of the parts, you can decrypt it with the other part, and
19911991

19921992
A certificate contains information about two principals. It contains the name
19931993
of a *subject*, and the subject's public key. It also contains a statement by a
1994-
second principal, the *issuer*, that the subject is who he claims to be, and
1994+
second principal, the *issuer*, that the subject is who they claim to be, and
19951995
that this is indeed the subject's public key. The issuer's statement is signed
19961996
with the issuer's private key, which only the issuer knows. However, anyone can
19971997
verify the issuer's statement by finding the issuer's public key, decrypting the

Doc/tutorial/introduction.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ to escape quotes::
143143
"doesn't"
144144
>>> "doesn't" # ...or use double quotes instead
145145
"doesn't"
146-
>>> '"Yes," he said.'
147-
'"Yes," he said.'
148-
>>> "\"Yes,\" he said."
149-
'"Yes," he said.'
150-
>>> '"Isn\'t," she said.'
151-
'"Isn\'t," she said.'
146+
>>> '"Yes," they said.'
147+
'"Yes," they said.'
148+
>>> "\"Yes,\" they said."
149+
'"Yes," they said.'
150+
>>> '"Isn\'t," they said.'
151+
'"Isn\'t," they said.'
152152

153153
In the interactive interpreter, the output string is enclosed in quotes and
154154
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
159159
readable output, by omitting the enclosing quotes and by printing escaped
160160
and special characters::
161161

162-
>>> '"Isn\'t," she said.'
163-
'"Isn\'t," she said.'
164-
>>> print('"Isn\'t," she said.')
165-
"Isn't," she said.
162+
>>> '"Isn\'t," they said.'
163+
'"Isn\'t," they said.'
164+
>>> print('"Isn\'t," they said.')
165+
"Isn't," they said.
166166
>>> s = 'First line.\nSecond line.' # \n means newline
167167
>>> s # without print(), \n is included in the output
168168
'First line.\nSecond line.'

0 commit comments

Comments
 (0)