summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-30 22:16:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-30 22:16:13 (GMT)
commitc4cacc8c5eab50db8da3140353596f38a01115ca (patch)
tree9198db7e2525d0f113823faee4b6d4ac7136a633 /Python
parent0acb646b8e405864224bfd6d7d5089980dea63ac (diff)
downloadcpython-c4cacc8c5eab50db8da3140353596f38a01115ca.zip
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.gz
cpython-c4cacc8c5eab50db8da3140353596f38a01115ca.tar.bz2
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.
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c2
-rw-r--r--Python/bootstrap_hash.c2
-rw-r--r--Python/compile.c2
-rw-r--r--Python/getopt.c2
-rw-r--r--Python/hamt.c2
-rw-r--r--Python/import.c2
-rw-r--r--Python/initconfig.c2
-rw-r--r--Python/pystate.c2
-rw-r--r--Python/sysmodule.c2
9 files changed, 9 insertions, 9 deletions
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 @@ fstring_find_expr(const char **str, const char *end, int raw, int recurse_lvl,
*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 @@ py_getrandom(void *buffer, Py_ssize_t size, int blocking, int raise)
}
/* 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 @@ compiler_make_closure(struct compiler *c, PyCodeObject *co, Py_ssize_t flags, Py
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 @@ hamt_node_bitmap_assoc(PyHamtNode_Bitmap *self,
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 @@ import_add_module(PyThreadState *tstate, PyObject *name)
}
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 @@ config_init_program_name(PyConfig *config)
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 @@ _PyCrossInterpreterData_Release(_PyCrossInterpreterData *data)
// 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 @@ static PyTypeObject AsyncGenHooksType;
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[] = {