Skip to content

Commit 6c97b03

Browse files
authored
[3.9] Fix typos in the Include directory (GH-28745) (GH-28788)
(cherry picked from commit 8e8f752)
1 parent 660718d commit 6c97b03

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
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
@@ -26,7 +26,7 @@ typedef struct {
2626
/* If ma_values is NULL, the table is "combined": keys and values
2727
are stored in ma_keys.
2828
29-
If ma_values is not NULL, the table is splitted:
29+
If ma_values is not NULL, the table is split:
3030
keys are stored in ma_keys and values are stored in ma_values */
3131
PyObject **ma_values;
3232
} PyDictObject;

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/pytime.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns);
9191
PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t,
9292
PyObject *obj);
9393

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

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

0 commit comments

Comments
 (0)