Fix typos in comments, docs and test names (#15018)
* Fix typos in comments, docs and test names
* Update test_pyparse.py
account for change in string length
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: splitable -> splittable
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Apply suggestion: Dealloccte -> Deallocate
Co-Authored-By: Terry Jan Reedy <tjreedy@udel.edu>
* Update posixmodule checksum.
* Reverse idlelib changes.
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 568d495..ef9dd51 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -405,7 +405,7 @@
BaseException_new, /* tp_new */
};
/* the CPython API expects exceptions to be (PyObject *) - both a hold-over
-from the previous implmentation and also allowing Python objects to be used
+from the previous implementation and also allowing Python objects to be used
in the API */
PyObject *PyExc_BaseException = (PyObject *)&_PyExc_BaseException;
diff --git a/Objects/object.c b/Objects/object.c
index ee20506..7f2c23a 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2072,7 +2072,7 @@
tstate->trash_delete_later = op;
}
-/* Dealloccate all the objects in the _PyTrash_delete_later list. Called when
+/* Deallocate all the objects in the _PyTrash_delete_later list. Called when
* the call-stack unwinds again.
*/
void
diff --git a/Objects/stringlib/unicode_format.h b/Objects/stringlib/unicode_format.h
index ddf1e26..b526ad2 100644
--- a/Objects/stringlib/unicode_format.h
+++ b/Objects/stringlib/unicode_format.h
@@ -828,7 +828,7 @@
tmp = NULL;
}
- /* if needed, recurively compute the format_spec */
+ /* if needed, recursively compute the format_spec */
if (format_spec_needs_expanding) {
tmp = build_string(format_spec, args, kwargs, recursion_depth-1,
auto_number);
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 8acf678..9e5709a 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -1369,7 +1369,7 @@
return 0;
}
else
- /* a is not completely initilized yet; follow tp_base */
+ /* a is not completely initialized yet; follow tp_base */
return type_is_subtype_base_chain(a, b);
}