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/Python/ast.c b/Python/ast.c
index ce3b492..976be70 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -5256,7 +5256,7 @@
*str += 1;
/* If we're in = mode (detected by non-NULL expr_text), and have no format
- spec and no explict conversion, set the conversion to 'r'. */
+ spec and no explicit conversion, set the conversion to 'r'. */
if (*expr_text && format_spec == NULL && conversion == -1) {
conversion = 'r';
}
diff --git a/Python/bootstrap_hash.c b/Python/bootstrap_hash.c
index 43f5264..aa3a3df 100644
--- a/Python/bootstrap_hash.c
+++ b/Python/bootstrap_hash.c
@@ -163,7 +163,7 @@
}
/* getrandom(GRND_NONBLOCK) fails with EAGAIN if the system urandom
- is not initialiazed yet. For _PyRandom_Init(), we ignore the
+ is not initialized yet. For _PyRandom_Init(), we ignore the
error and fall back on reading /dev/urandom which never blocks,
even if the system urandom is not initialized yet:
see the PEP 524. */
diff --git a/Python/compile.c b/Python/compile.c
index 0336959..d2de7a7 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -1868,7 +1868,7 @@
free variable that has the same name as a method,
the name will be considered free *and* local in the
class. It should be handled by the closure, as
- well as by the normal name loookup logic.
+ well as by the normal name lookup logic.
*/
reftype = get_ref_type(c, name);
if (reftype == CELL)
diff --git a/Python/getopt.c b/Python/getopt.c
index 1a7db3f..89f7734 100644
--- a/Python/getopt.c
+++ b/Python/getopt.c
@@ -20,7 +20,7 @@
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Nevertheless, I would like to know about bugs in this library or
- * suggestions for improvment. Send bug reports and feedback to
+ * suggestions for improvement. Send bug reports and feedback to
* davegottner@delphi.com.
*---------------------------------------------------------------------------*/
diff --git a/Python/hamt.c b/Python/hamt.c
index b3cbf9a..28b4e1e 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -830,7 +830,7 @@
Instead we start using an Array node, which has
simpler (faster) implementation at the expense of
- having prealocated 32 pointers for its keys/values
+ having preallocated 32 pointers for its keys/values
pairs.
Small hamt objects (<30 keys) usually don't have any
diff --git a/Python/import.c b/Python/import.c
index 15f1d94..9f5ec28 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -833,7 +833,7 @@
}
else {
m = PyObject_GetItem(modules, name);
- // For backward-comaptibility we copy the behavior
+ // For backward-compatibility we copy the behavior
// of PyDict_GetItemWithError().
if (_PyErr_ExceptionMatches(tstate, PyExc_KeyError)) {
_PyErr_Clear(tstate);
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 9247443..5bd7d4f 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -1068,7 +1068,7 @@
or rather, to work around Apple's overly strict requirements of
the process name. However, we still need a usable sys.executable,
so the actual executable path is passed in an environment variable.
- See Lib/plat-mac/bundlebuiler.py for details about the bootstrap
+ See Lib/plat-mac/bundlebuilder.py for details about the bootstrap
script. */
const char *p = config_get_env(config, "PYTHONEXECUTABLE");
if (p != NULL) {
diff --git a/Python/pystate.c b/Python/pystate.c
index 1c3c0f4..3b2adf5 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -1499,7 +1499,7 @@
// Switch to the original interpreter.
PyInterpreterState *interp = _PyInterpreterState_LookUpID(data->interp);
if (interp == NULL) {
- // The intepreter was already destroyed.
+ // The interpreter was already destroyed.
if (data->free != NULL) {
// XXX Someone leaked some memory...
}
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 103a111..a89ebce 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1162,7 +1162,7 @@
PyDoc_STRVAR(asyncgen_hooks_doc,
"asyncgen_hooks\n\
\n\
-A struct sequence providing information about asynhronous\n\
+A struct sequence providing information about asynchronous\n\
generators hooks. The attributes are read only.");
static PyStructSequence_Field asyncgen_hooks_fields[] = {