Skip to content

Commit f679839

Browse files
authored
[3.10] Fix typos in the Include directory (GH-28745) (GH-28789)
(cherry picked from commit 8e8f752)
1 parent d55bf81 commit f679839

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

Include/abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
318318

319319
/* Takes an arbitrary object which must support the (character, single segment)
320320
buffer interface and returns a pointer to a read-only memory location
321-
useable as character based input for subsequent processing.
321+
usable as character based input for subsequent processing.
322322
323323
Return 0 on success. buffer and buffer_len are only set in case no error
324324
occurs. Otherwise, -1 is returned and an exception set. */

Include/cpython/dictobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ typedef struct {
2222
/* If ma_values is NULL, the table is "combined": keys and values
2323
are stored in ma_keys.
2424
25-
If ma_values is not NULL, the table is splitted:
25+
If ma_values is not NULL, the table is split:
2626
keys are stored in ma_keys and values are stored in ma_values */
2727
PyObject **ma_values;
2828
} PyDictObject;

Include/cpython/pystate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ PyAPI_FUNC(int) _PyInterpreterState_GetConfigCopy(
242242
PyAPI_FUNC(int) _PyInterpreterState_SetConfig(
243243
const struct PyConfig *config);
244244

245-
// Get the configuration of the currrent interpreter.
245+
// Get the configuration of the current interpreter.
246246
// The caller must hold the GIL.
247247
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
248248

Include/cpython/pytime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns);
8888
PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t,
8989
PyObject *obj);
9090

91-
/* Convert a number of seconds (Python float or int) to a timetamp.
91+
/* Convert a number of seconds (Python float or int) to a timestamp.
9292
Raise an exception and return -1 on error, return 0 on success. */
9393
PyAPI_FUNC(int) _PyTime_FromSecondsObject(_PyTime_t *t,
9494
PyObject *obj,
9595
_PyTime_round_t round);
9696

97-
/* Convert a number of milliseconds (Python float or int, 10^-3) to a timetamp.
97+
/* Convert a number of milliseconds (Python float or int, 10^-3) to a timestamp.
9898
Raise an exception and return -1 on error, return 0 on success. */
9999
PyAPI_FUNC(int) _PyTime_FromMillisecondsObject(_PyTime_t *t,
100100
PyObject *obj,

Include/internal/pycore_traceback.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
5151
_PyGILState_GetInterpreterStateUnsafe() in last resort.
5252
5353
It is better to pass NULL to interp and current_tstate, the function tries
54-
different options to retrieve these informations.
54+
different options to retrieve this information.
5555
5656
This function is signal safe. */
5757

Include/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
590590
}
591591

592592
// Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI.
593-
// Names overriden with macros by static inline functions for best
593+
// Names overridden with macros by static inline functions for best
594594
// performances.
595595
#define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
596596
#define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj))

0 commit comments

Comments
 (0)