summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-07 13:01:05 (GMT)
committerGitHub <noreply@github.com>2021-10-07 13:01:05 (GMT)
commit6c97b03cf64176da96aa68b2281f1cc702fb96a1 (patch)
tree8777274c1745a4cce0d5401fbb2911d27aa00022
parent660718dba57624720c2a9832f10f29ace59c77cf (diff)
downloadcpython-6c97b03cf64176da96aa68b2281f1cc702fb96a1.zip
cpython-6c97b03cf64176da96aa68b2281f1cc702fb96a1.tar.gz
cpython-6c97b03cf64176da96aa68b2281f1cc702fb96a1.tar.bz2
[3.9] Fix typos in the Include directory (GH-28745) (GH-28788)
(cherry picked from commit 8e8f7522171ef82f2f5049940f815e00e38c6f42)
-rw-r--r--Include/abstract.h2
-rw-r--r--Include/cpython/dictobject.h2
-rw-r--r--Include/internal/pycore_traceback.h2
-rw-r--r--Include/pytime.h4
4 files changed, 5 insertions, 5 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index bb51c66..d31d66e 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 e33a0d1..50f4c4a 100644
--- a/Include/cpython/dictobject.h
+++ b/Include/cpython/dictobject.h
@@ -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;
diff --git a/Include/internal/pycore_traceback.h b/Include/internal/pycore_traceback.h
index 1f09241..c23290e 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/pytime.h b/Include/pytime.h
index bdda1da..c79eba2 100644
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -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,