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

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

index e8d3f9293b98d32cbeb073dd934734cb449a9b80..9eaab6b2e054c4406f3bb4af8f423a94a4907965 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 6822a65cad95e8a0a35ed3661990ef22f51b8bf8..641d7bdc48e2efd3c866b3082c5dfe3f75f455d9 100644 (file)
@@ -22,7 +22,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 e3ccc5435608498d19ea454024cbb9757f0d7914..b0d30bd07931327a162af9b175bfae2277e84682 100644 (file)
@@ -242,7 +242,7 @@ PyAPI_FUNC(int) _PyInterpreterState_GetConfigCopy(
 PyAPI_FUNC(int) _PyInterpreterState_SetConfig(
     const struct PyConfig *config);
 
-// Get the configuration of the currrent interpreter.
+// Get the configuration of the current interpreter.
 // The caller must hold the GIL.
 PyAPI_FUNC(const PyConfig*) _Py_GetConfig(void);
 
index 56607d199ed542da7448cea7272ee84fe48713eb..754c7f4777f9c26afa911df35721d2ac8b1a63bd 100644 (file)
@@ -88,13 +88,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,
index 4d282308769dc872d2f595ddda72ba0567b55e86..c01a47639d5e30b3e34547e092646e3a2cbf594f 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 9e6a8f4656af0e687e259e94cb439727cfa98ab5..61e638c34973c4e8325a94fb350312ccb5002809 100644 (file)
@@ -590,7 +590,7 @@ static inline PyObject* _Py_XNewRef(PyObject *obj)
 }
 
 // Py_NewRef() and Py_XNewRef() are exported as functions for the stable ABI.
-// Names overriden with macros by static inline functions for best
+// Names overridden with macros by static inline functions for best
 // performances.
 #define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj))
 #define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj))