]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Fix typos in the Objects directory (GH-28766) (GH-28797)
authorChristian Clauss <cclauss@me.com>
Thu, 7 Oct 2021 14:31:33 +0000 (16:31 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Oct 2021 14:31:33 +0000 (07:31 -0700)
(cherry picked from commit 5f401f10400123afa9171548c432ea3fc37c0736)

Automerge-Triggered-By: GH:JulienPalard
Objects/floatobject.c
Objects/listobject.c
Objects/listsort.txt
Objects/obmalloc.c
Objects/setobject.c
Objects/unicodeobject.c
PC/getpathp.c
Parser/tokenizer.h

index 92faa7c1320237ae7efa5c6240a017e5b643e0ba..e4ce7e74d2c57fc24b1368de50c198cbdcd1bc26 100644 (file)
@@ -2350,7 +2350,7 @@ _PyFloat_Pack8(double x, unsigned char *p, int le)
             flo = 0;
             ++fhi;
             if (fhi >> 28) {
-                /* And it also progagated out of the next 28 bits. */
+                /* And it also propagated out of the next 28 bits. */
                 fhi = 0;
                 ++e;
                 if (e >= 2047)
index 898cbc20c5f81c3d36b4acdbe82d43c6f932be17..533ee7436d31133e3ba3be94eb268560f18926fb 100644 (file)
@@ -2024,7 +2024,7 @@ safe_object_compare(PyObject *v, PyObject *w, MergeState *ms)
     return PyObject_RichCompareBool(v, w, Py_LT);
 }
 
-/* Homogeneous compare: safe for any two compareable objects of the same type.
+/* Homogeneous compare: safe for any two comparable objects of the same type.
  * (ms->key_richcompare is set to ob_type->tp_richcompare in the
  *  pre-sort check.)
  */
index 174777a2658dc60eeebec775f5c14fb476378f4c..42809d71bc44a423a77f5ef31b989969bbf73df4 100644 (file)
@@ -758,6 +758,6 @@ OPTIMIZATION OF INDIVIDUAL COMPARISONS
 As noted above, even the simplest Python comparison triggers a large pile of
 C-level pointer dereferences, conditionals, and function calls.  This can be
 partially mitigated by pre-scanning the data to determine whether the data is
-homogenous with respect to type.  If so, it is sometimes possible to
+homogeneous with respect to type.  If so, it is sometimes possible to
 substitute faster type-specific comparisons for the slower, generic
 PyObject_RichCompareBool.
index 1e06bee5c50ff1164c04c720cd217d9d64098a54..15c442b858d5f1aea617d72d4005c4f786d21883 100644 (file)
@@ -836,7 +836,7 @@ static int running_on_valgrind = -1;
 
 /*
  * Alignment of addresses returned to the user. 8-bytes alignment works
- * on most current architectures (with 32-bit or 64-bit address busses).
+ * on most current architectures (with 32-bit or 64-bit address buses).
  * The alignment value is also used for grouping small requests in size
  * classes spaced ALIGNMENT bytes apart.
  *
index 9d4cfd35e328fad874eb27e6cb0c22999a84f91d..6524963b8abc371bc49c50e4b7aaf7c0ab81bc1d 100644 (file)
@@ -1407,7 +1407,7 @@ set_difference_update_internal(PySetObject *so, PyObject *other)
 
         /* Optimization:  When the other set is more than 8 times
            larger than the base set, replace the other set with
-           interesection of the two sets.
+           intersection of the two sets.
         */
         if ((PySet_GET_SIZE(other) >> 3) > PySet_GET_SIZE(so)) {
             other = set_intersection(so, other);
index 849dd5cfe2f10bf1bcd2e513bd1b66a432e8d144..11a3a6d0a4dce35dd2dd07b01116061f212e5027 100644 (file)
@@ -7473,7 +7473,7 @@ PyUnicode_AsASCIIString(PyObject *unicode)
 #endif
 
 /* INT_MAX is the theoretical largest chunk (or INT_MAX / 2 when
-   transcoding from UTF-16), but INT_MAX / 4 perfoms better in
+   transcoding from UTF-16), but INT_MAX / 4 performs better in
    both cases also and avoids partial characters overrunning the
    length limit in MultiByteToWideChar on Windows */
 #define DECODING_CHUNK_SIZE (INT_MAX/4)
@@ -16149,7 +16149,7 @@ init_fs_codec(PyInterpreterState *interp)
     _Py_error_handler error_handler;
     error_handler = get_error_handler_wide(config->filesystem_errors);
     if (error_handler == _Py_ERROR_UNKNOWN) {
-        PyErr_SetString(PyExc_RuntimeError, "unknow filesystem error handler");
+        PyErr_SetString(PyExc_RuntimeError, "unknown filesystem error handler");
         return -1;
     }
 
index 603a1eb13c4ff016c7406853ab717149965dc5d2..dc5b201d145f33dbdb1229129bffb52ed01dfdab 100644 (file)
@@ -332,7 +332,7 @@ extern const char *PyWin_DLLVersionString;
    Returns NULL, or a pointer that should be freed.
 
    XXX - this code is pretty strange, as it used to also
-   work on Win16, where the buffer sizes werent available
+   work on Win16, where the buffer sizes were not available
    in advance.  It could be simplied now Win16/Win32s is dead!
 */
 static wchar_t *
index a40f7d9687b44078065b3c1d751010bd3592b086..677f9dba490bed36cd20f874e0f26ec9a398e5a6 100644 (file)
@@ -23,7 +23,7 @@ enum interactive_underflow_t {
     /* Normal mode of operation: return a new token when asked in interactie mode */
     IUNDERFLOW_NORMAL,
     /* Forcefully return ENDMARKER when asked for a new token in interactive mode. This
-     * can be used to prevent the tokenizer to promt the user for new tokens */
+     * can be used to prevent the tokenizer to prompt the user for new tokens */
     IUNDERFLOW_STOP,
 };