Skip to content

Commit 8e8f752

Browse files
authored
Fix typos in the Include directory (GH-28745)
1 parent b24b47e commit 8e8f752

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

Include/abstract.h

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef struct {
2323
/* If ma_values is NULL, the table is "combined": keys and values
2424
are stored in ma_keys.
2525
26-
If ma_values is not NULL, the table is splitted:
26+
If ma_values is not NULL, the table is split:
2727
keys are stored in ma_keys and values are stored in ma_values */
2828
PyDictValues *ma_values;
2929
} PyDictObject;

Include/cpython/pystate.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ PyAPI_FUNC(int) _PyInterpreterState_GetConfigCopy(
263263
PyAPI_FUNC(int) _PyInterpreterState_SetConfig(
264264
const struct PyConfig *config);
265265

266-
// Get the configuration of the currrent interpreter.
266+
// Get the configuration of the current interpreter.
267267
// The caller must hold the GIL.
268268
PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
269269

Include/cpython/pytime.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns);
134134
PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t,
135135
PyObject *obj);
136136

137-
/* Convert a number of seconds (Python float or int) to a timetamp.
137+
/* Convert a number of seconds (Python float or int) to a timestamp.
138138
Raise an exception and return -1 on error, return 0 on success. */
139139
PyAPI_FUNC(int) _PyTime_FromSecondsObject(_PyTime_t *t,
140140
PyObject *obj,
141141
_PyTime_round_t round);
142142

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

Include/internal/pycore_frame.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ _PyFrame_GetFrameObject(InterpreterFrame *frame)
128128

129129
/* Clears all references in the frame.
130130
* If take is non-zero, then the InterpreterFrame frame
131-
* may be transfered to the frame object it references
131+
* may be transferred to the frame object it references
132132
* instead of being cleared. Either way
133133
* the caller no longer owns the references
134134
* in the frame.

Include/internal/pycore_traceback.h

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
600600
}
601601

602602
// Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI.
603-
// Names overriden with macros by static inline functions for best
603+
// Names overridden with macros by static inline functions for best
604604
// performances.
605605
#define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
606606
#define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj))

0 commit comments

Comments
 (0)