summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 18:32:38 (GMT)
committerGitHub <noreply@github.com>2021-10-06 18:32:38 (GMT)
commit8e8f7522171ef82f2f5049940f815e00e38c6f42 (patch)
treecc4238b71699a4c9cb19578be4b4b21b4bd10626 /Include
parentb24b47e64355224c1bf4e46ed7c4d9f7df4e6f09 (diff)
downloadcpython-8e8f7522171ef82f2f5049940f815e00e38c6f42.zip
cpython-8e8f7522171ef82f2f5049940f815e00e38c6f42.tar.gz
cpython-8e8f7522171ef82f2f5049940f815e00e38c6f42.tar.bz2
Fix typos in the Include directory (GH-28745)
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h2
-rw-r--r--Include/cpython/dictobject.h2
-rw-r--r--Include/cpython/pystate.h2
-rw-r--r--Include/cpython/pytime.h4
-rw-r--r--Include/internal/pycore_frame.h2
-rw-r--r--Include/internal/pycore_traceback.h2
-rw-r--r--Include/object.h2
7 files changed, 8 insertions, 8 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index e8d3f92..9eaab6b 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -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. */
diff --git a/Include/cpython/dictobject.h b/Include/cpython/dictobject.h
index ba11878..e97969b 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -23,7 +23,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 */
PyDictValues *ma_values;
} PyDictObject;
diff --git a/Include/cpython/pystate.h b/Include/cpython/pystate.h
index ab4bf8b..ca0de87 100644
--- a/Include/cpython/pystate.h
+++ b/Include/cpython/pystate.h
@@ -263,7 +263,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);
diff --git a/Include/cpython/pytime.h b/Include/cpython/pytime.h
index f32148a..23d4f16 100644
--- a/Include/cpython/pytime.h
+++ b/Include/cpython/pytime.h
@@ -134,13 +134,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,
diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h
index 6afb95c..489e115 100644
--- a/Include/internal/pycore_frame.h
+++ b/Include/internal/pycore_frame.h
@@ -128,7 +128,7 @@ _PyFrame_GetFrameObject(InterpreterFrame *frame)
/* Clears all references in the frame.
* If take is non-zero, then the InterpreterFrame frame
- * may be transfered to the frame object it references
+ * may be transferred to the frame object it references
* instead of being cleared. Either way
* the caller no longer owns the references
* in the frame.
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index 4d28230..c01a476 100644
--- a/Include/internal/pycore_traceback.h
+++ b/Include/internal/pycore_traceback.h
@@ -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. */
diff --git a/Include/object.h b/Include/object.h
index 490cbff..c3062cb 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -600,7 +600,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))