Skip to content

Commit 9e108b8

Browse files
Wulian233picnixz
andauthored
Fix typos in docs, error messages and comments (#123336)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 4c6dca8 commit 9e108b8

File tree

21 files changed

+25
-25
lines changed

21 files changed

+25
-25
lines changed

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Initializing and finalizing the interpreter
426426
loaded extension modules loaded by Python are not unloaded. Small amounts of
427427
memory allocated by the Python interpreter may not be freed (if you find a leak,
428428
please report it). Memory tied up in circular references between objects is not
429-
freed. Interned strings will all be deallocated regarldess of their reference count.
429+
freed. Interned strings will all be deallocated regardless of their reference count.
430430
Some memory allocated by extension modules may not be freed. Some extensions may not
431431
work properly if their initialization routine is called more than once; this can
432432
happen if an application calls :c:func:`Py_Initialize` and :c:func:`Py_FinalizeEx`

Misc/NEWS.d/3.10.0b1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ cause any runtime effects with ``from __future__ import annotations``.
277277
.. section: Core and Builtins
278278
279279
:exc:`SyntaxError` exceptions raised by the interpreter will highlight the
280-
full error range of the expression that consistutes the syntax error itself,
280+
full error range of the expression that constitutes the syntax error itself,
281281
instead of just where the problem is detected. Patch by Pablo Galindo.
282282

283283
..

Misc/NEWS.d/3.12.0a3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ returns an invalid file descriptor.
221221
222222
Also \ escape \s in the http.server BaseHTTPRequestHandler.log_message so
223223
that it is technically possible to parse the line and reconstruct what the
224-
original data was. Without this a \xHH is ambiguious as to if it is a hex
224+
original data was. Without this a \xHH is ambiguous as to if it is a hex
225225
replacement we put in or the characters r"\x" came through in the original
226226
request line.
227227

Misc/NEWS.d/3.12.0a5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ a positional argument would lead to a :exc:`TypeError`.
287287
.. section: Library
288288
289289
Group-related variables of ``_posixsubprocess`` module are renamed to stress
290-
that supplimentary group affinity is added to a fork, not replace the
290+
that supplementary group affinity is added to a fork, not replace the
291291
inherited ones. Patch by Oleg Iarygin.
292292

293293
..

Misc/NEWS.d/3.7.0b1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ callback.
414414
.. section: Library
415415
416416
Fix memory leak in asyncio.Queue, when the queue has limited size and it is
417-
full, the cancelation of queue.put() can cause a memory leak. Patch by: José
417+
full, the cancellation of queue.put() can cause a memory leak. Patch by: José
418418
Melero.
419419

420420
..

Misc/stable_abi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# - struct_abi_kind: for `struct`, defines how much of the struct is exposed:
4141
# - 'full-abi': All of the struct is part of the ABI, including the size
4242
# (users may define arrays of these structs).
43-
# Typically used for initalization, rather than at runtime.
43+
# Typically used for initialization, rather than at runtime.
4444
# - 'opaque': No members are part of the ABI, nor is the size. The Limited
4545
# API only handles these via pointers. The C definition should be
4646
# incomplete (opaque).

Modules/_ctypes/_ctypes_test.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ _testfunc_array_in_struct3C_set_defaults(void)
211211
/*
212212
* Test3D struct tests the MAX_STRUCT_SIZE 64. Structs containing arrays of up
213213
* to eight floating-point types are passed in registers on PPC64LE platforms.
214-
* This struct is used for within bounds test on PPC64LE platfroms and for an
215-
* out-of-bounds tests for platfroms where MAX_STRUCT_SIZE is less than 64.
214+
* This struct is used for within bounds test on PPC64LE platforms and for an
215+
* out-of-bounds tests for platforms where MAX_STRUCT_SIZE is less than 64.
216216
* See gh-110190.
217217
*/
218218
typedef struct {

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ wrap_strftime(PyObject *object, PyObject *format, PyObject *timetuple,
18551855
/* Buffer of maximum size of formatted year permitted by long. */
18561856
char buf[SIZEOF_LONG * 5 / 2 + 2
18571857
#ifdef Py_STRFTIME_C99_SUPPORT
1858-
/* Need 6 more to accomodate dashes, 2-digit month and day for %F. */
1858+
/* Need 6 more to accommodate dashes, 2-digit month and day for %F. */
18591859
+ 6
18601860
#endif
18611861
];

Modules/_io/textio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1719,7 +1719,7 @@ _io_TextIOWrapper_write_impl(textio *self, PyObject *text)
17191719
bytes_len = PyBytes_GET_SIZE(b);
17201720
}
17211721

1722-
// We should avoid concatinating huge data.
1722+
// We should avoid concatenating huge data.
17231723
// Flush the buffer before adding b to the buffer if b is not small.
17241724
// https://github.com/python/cpython/issues/87426
17251725
if (bytes_len >= self->chunk_size) {

Modules/_stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ S_IWOTH: write by others\n\
506506
S_IXOTH: execute by others\n\
507507
\n"
508508

509-
"UF_SETTABLE: mask of owner changable flags\n\
509+
"UF_SETTABLE: mask of owner changeable flags\n\
510510
UF_NODUMP: do not dump file\n\
511511
UF_IMMUTABLE: file may not be changed\n\
512512
UF_APPEND: file may only be appended to\n\

0 commit comments

Comments
 (0)