summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 22:55:27 (GMT)
committerGitHub <noreply@github.com>2021-10-06 22:55:27 (GMT)
commitdb693df3e112c5a61f2cbef63eedce3a36520ded (patch)
tree9d9fde2302ea951001e2d7eed67e2648f1457208 /Python/compile.c
parent6c942a86a4fb4c8b731cb1bd2933dba554eb79cd (diff)
downloadcpython-db693df3e112c5a61f2cbef63eedce3a36520ded.zip
cpython-db693df3e112c5a61f2cbef63eedce3a36520ded.tar.gz
cpython-db693df3e112c5a61f2cbef63eedce3a36520ded.tar.bz2
Fix typos in the Python directory (GH-28767)
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 2d82d6a..0c025ac 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -6335,7 +6335,7 @@ compiler_pattern_or(struct compiler *c, pattern_ty p, pattern_context *pc)
// cases, though.
assert(istores < icontrol);
Py_ssize_t rotations = istores + 1;
- // Perfom the same rotation on pc->stores:
+ // Perform the same rotation on pc->stores:
PyObject *rotated = PyList_GetSlice(pc->stores, 0,
rotations);
if (rotated == NULL ||
@@ -7326,7 +7326,7 @@ consts_dict_keys_inorder(PyObject *dict)
return NULL;
while (PyDict_Next(dict, &pos, &k, &v)) {
i = PyLong_AS_LONG(v);
- /* The keys of the dictionary can be tuples wrapping a contant.
+ /* The keys of the dictionary can be tuples wrapping a constant.
* (see compiler_add_o and _PyCode_ConstantKey). In that case
* the object we want is always second. */
if (PyTuple_CheckExact(k)) {