Skip to content

Commit f7d72e4

Browse files
minho42brettcannon
authored andcommitted
Fix some typos (GH-14435)
1 parent 10e5c66 commit f7d72e4

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Misc/NEWS.d/3.8.0a1.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ The *lineno* and *col_offset* attributes of the AST for decorated function
550550
and class refer now to the position of the corresponding ``def``, ``async
551551
def`` and ``class`` instead of the position of the first decorator. This
552552
leads to more correct line reporting in tracing. This is the only case when
553-
the position of child AST nodes can preceed the position of the parent AST
553+
the position of child AST nodes can precede the position of the parent AST
554554
node.
555555

556556
..
@@ -2366,7 +2366,7 @@ running external programs like ``cmd /c ver``.
23662366
23672367
Previously, calling the strftime() method on a datetime object with a
23682368
trailing '%' in the format string would result in an exception. However,
2369-
this only occured when the datetime C module was being used; the python
2369+
this only occurred when the datetime C module was being used; the python
23702370
implementation did not match this behavior. Datetime is now PEP-399
23712371
compliant, and will not throw an exception on a trailing '%'.
23722372

@@ -5278,7 +5278,7 @@ Improved error handling and fixed a reference leak in
52785278
.. nonce: zncfvW
52795279
.. section: Library
52805280
5281-
Deleting a key from a read-only dbm database raises module specfic error
5281+
Deleting a key from a read-only dbm database raises module specific error
52825282
instead of KeyError.
52835283

52845284
..

Misc/NEWS.d/3.8.0a3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Update Unicode databases to version 12.0.0.
173173
.. nonce: dZemNt
174174
.. section: Core and Builtins
175175
176-
Fix a segfault occuring when sorting a list of heterogeneous values. Patch
176+
Fix a segfault occurring when sorting a list of heterogeneous values. Patch
177177
contributed by Rémi Lapeyre and Elliot Gorokhovsky.
178178

179179
..

Misc/NEWS.d/3.8.0b1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ versions.
16131613
.. section: Documentation
16141614
16151615
Improve documentation of the stdin, stdout, and stderr arguments of of the
1616-
``asyncio.subprocess_exec`` function to specficy which values are supported.
1616+
``asyncio.subprocess_exec`` function to specify which values are supported.
16171617
Also mention that decoding as text is not supported.
16181618

16191619
Add a few tests to verify that the various values passed to the std*

Modules/_abc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ _abc__abc_instancecheck_impl(PyObject *module, PyObject *self,
554554
}
555555

556556

557-
// Return -1 when exception occured.
557+
// Return -1 when exception occurred.
558558
// Return 1 when result is set.
559559
// Return 0 otherwise.
560560
static int subclasscheck_check_registry(_abc_data *impl, PyObject *subclass,
@@ -666,7 +666,7 @@ _abc__abc_subclasscheck_impl(PyObject *module, PyObject *self,
666666

667667
/* 5. Check if it's a subclass of a registered class (recursive). */
668668
if (subclasscheck_check_registry(impl, subclass, &result)) {
669-
// Exception occured or result is set.
669+
// Exception occurred or result is set.
670670
goto end;
671671
}
672672

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1552,7 +1552,7 @@ prove that after that line is executed, we have
15521552
15531553
(a - 1)**2 < (n >> 2*(c - d)) < (a + 1)**2
15541554
1555-
To faciliate the proof, we make some changes of notation. Write `m` for
1555+
To facilitate the proof, we make some changes of notation. Write `m` for
15561556
`n >> 2*(c-d)`, and write `b` for the new value of `a`, so
15571557
15581558
b = (a << d - e - 1) + (n >> 2*c - e - d + 1) // a

0 commit comments

Comments
 (0)