Skip to content

Commit 5db6cc2

Browse files
Progress on picking true typos
1 parent 7816b64 commit 5db6cc2

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

Doc/extending/extending.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ and initialize it by calling :c:func:`PyErr_NewException` in the module's
214214

215215
SpamError = PyErr_NewException("spam.error", NULL, NULL);
216216

217-
Since :c:data:`!SpamError` is a global variable, it will be overwitten every time
217+
Since :c:data:`!SpamError` is a global variable, it will be overwritten every time
218218
the module is reinitialized, when the :c:data:`Py_mod_exec` function is called.
219219

220220
For now, let's avoid the issue: we will block repeated initialization by raising an

Doc/library/shelve.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Restrictions
144144
which can cause hard crashes when trying to read from the database.
145145

146146
* :meth:`Shelf.reorganize` may not be available for all database packages and
147-
may temporarely increase resource usage (especially disk space) when called.
147+
may temporarily increase resource usage (especially disk space) when called.
148148
Additionally, it will never run automatically and instead needs to be called
149149
explicitly.
150150

Doc/whatsnew/3.14.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ Concurrent safe warnings control
10511051
The :class:`warnings.catch_warnings` context manager will now optionally
10521052
use a context variable for warning filters. This is enabled by setting
10531053
the :data:`~sys.flags.context_aware_warnings` flag, either with the ``-X``
1054-
command-line option or an environment variable. This gives predicable
1054+
command-line option or an environment variable. This gives predictable
10551055
warnings control when using :class:`~warnings.catch_warnings` combined with
10561056
multiple threads or asynchronous tasks. The flag defaults to true for the
10571057
free-threaded build and false for the GIL-enabled build.

Include/cpython/critical_section.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ PyCriticalSection2_End(PyCriticalSection2 *c);
9393
}
9494
#else /* !Py_GIL_DISABLED */
9595

96-
// NOTE: the contents of this struct are private and may change betweeen
96+
// NOTE: the contents of this struct are private and may change between
9797
// Python releases without a deprecation period.
9898
struct PyCriticalSection {
9999
// Tagged pointer to an outer active critical section (or 0).
@@ -105,7 +105,7 @@ struct PyCriticalSection {
105105

106106
// A critical section protected by two mutexes. Use
107107
// Py_BEGIN_CRITICAL_SECTION2 and Py_END_CRITICAL_SECTION2.
108-
// NOTE: the contents of this struct are private and may change betweeen
108+
// NOTE: the contents of this struct are private and may change between
109109
// Python releases without a deprecation period.
110110
struct PyCriticalSection2 {
111111
PyCriticalSection _cs_base;

Include/internal/pycore_pymem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extern void _PyMem_FreeDelayed(void *ptr, size_t size);
9494
extern void _PyMem_ProcessDelayed(PyThreadState *tstate);
9595

9696
// Periodically process delayed free requests when the world is stopped.
97-
// Notify of any objects whic should be freeed.
97+
// Notify of any objects which should be freed.
9898
typedef void (*delayed_dealloc_cb)(PyObject *, void *);
9999
extern void _PyMem_ProcessDelayedNoDealloc(PyThreadState *tstate,
100100
delayed_dealloc_cb cb, void *state);

Include/modsupport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PyAPI_FUNC(int) PyModule_Add(PyObject *mod, const char *name, PyObject *value);
3333

3434
// Similar to PyModule_AddObjectRef() and PyModule_Add() but steal
3535
// a reference to 'value' on success and only on success.
36-
// Errorprone. Should not be used in new code.
36+
// Error-prone. Should not be used in new code.
3737
PyAPI_FUNC(int) PyModule_AddObject(PyObject *mod, const char *, PyObject *value);
3838

3939
PyAPI_FUNC(int) PyModule_AddIntConstant(PyObject *, const char *, long);

Include/refcount.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op)
453453
* There are cases where it's safe to use the naive code, but they're brittle.
454454
* For example, if `op` points to a Python integer, you know that destroying
455455
* one of those can't cause problems -- but in part that relies on that
456-
* Python integers aren't currently weakly referencable. Best practice is
456+
* Python integers aren't currently weakly referenceable. Best practice is
457457
* to use Py_CLEAR() even if you can't think of a reason for why you need to.
458458
*
459459
* gh-98724: Use a temporary variable to only evaluate the macro argument once,

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ PyAPI_FUNC(PyObject*) PyUnicode_Split(
760760
Py_ssize_t maxsplit /* Maxsplit count */
761761
);
762762

763-
/* Dito, but split at line breaks.
763+
/* Ditto, but split at line breaks.
764764
765765
CRLF is considered to be one line break. Line breaks are not
766766
included in the resulting list. */

InternalDocs/asyncio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ the current task is found and returned. If no matching thread state is
205205
found, `None` is returned.
206206

207207
In free-threading, it avoids contention on a global dictionary as
208-
threads can access the current task of thier running loop without any
208+
threads can access the current task of their running loop without any
209209
locking.
210210

211211
---

Lib/multiprocessing/resource_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _reentrant_call_error(self):
7676
"Reentrant call into the multiprocessing resource tracker")
7777

7878
def __del__(self):
79-
# making sure child processess are cleaned before ResourceTracker
79+
# making sure child processes are cleaned before ResourceTracker
8080
# gets destructed.
8181
# see https://github.com/python/cpython/issues/88887
8282
self._stop(use_blocking_lock=False)

0 commit comments

Comments
 (0)