]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] Fix typos in the Include directory (GH-28745) (GH-28788)
authorChristian Clauss <cclauss@me.com>
Thu, 7 Oct 2021 13:01:05 +0000 (15:01 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 13:01:05 +0000 (06:01 -0700)
(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)

Include/abstract.h
Include/cpython/dictobject.h
Include/internal/pycore_traceback.h
Include/pytime.h

index bb51c668ac69837da363572bbc78548df4188c97..d31d66e6b4aea36ea13caba974dfa7de85833dd1 100644 (file)
@@ -318,7 +318,7 @@ PyAPI_FUNC(int) PyObject_DelItem(PyObject *o, PyObject *key);
 
 /* Takes an arbitrary object which must support the (character, single segment)
    buffer interface and returns a pointer to a read-only memory location
-   useable as character based input for subsequent processing.
+   usable as character based input for subsequent processing.
 
    Return 0 on success.  buffer and buffer_len are only set in case no error
    occurs. Otherwise, -1 is returned and an exception set. */
index e33a0d156fead2a90773025699fad9d0ab992558..50f4c4a9e5502b2d5cb12c7905e8dde8b17350e6 100644 (file)
@@ -26,7 +26,7 @@ typedef struct {
     /* If ma_values is NULL, the table is "combined": keys and values
        are stored in ma_keys.
 
-       If ma_values is not NULL, the table is splitted:
+       If ma_values is not NULL, the table is split:
        keys are stored in ma_keys and values are stored in ma_values */
     PyObject **ma_values;
 } PyDictObject;
index 1f092411a72ba5c975d11a00cdd9e81ab5ab2f77..c23290ebec59924d148630e0ff3f18d6caaec8e0 100644 (file)
@@ -51,7 +51,7 @@ PyAPI_FUNC(void) _Py_DumpTraceback(
    _PyGILState_GetInterpreterStateUnsafe() in last resort.
 
    It is better to pass NULL to interp and current_tstate, the function tries
-   different options to retrieve these informations.
+   different options to retrieve this information.
 
    This function is signal safe. */
 
index bdda1da2e6b8f2ec6bce29688a67f8137f7d9208..c79eba2f5bc6f7c5135d38dc9538e60a0f46349b 100644 (file)
@@ -91,13 +91,13 @@ PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns);
 PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t,
     PyObject *obj);
 
-/* Convert a number of seconds (Python float or int) to a timetamp.
+/* Convert a number of seconds (Python float or int) to a timestamp.
    Raise an exception and return -1 on error, return 0 on success. */
 PyAPI_FUNC(int) _PyTime_FromSecondsObject(_PyTime_t *t,
     PyObject *obj,
     _PyTime_round_t round);
 
-/* Convert a number of milliseconds (Python float or int, 10^-3) to a timetamp.
+/* Convert a number of milliseconds (Python float or int, 10^-3) to a timestamp.
    Raise an exception and return -1 on error, return 0 on success. */
 PyAPI_FUNC(int) _PyTime_FromMillisecondsObject(_PyTime_t *t,
     PyObject *obj,