mirror of
https://github.com/python/cpython.git
synced 2025-08-24 10:45:53 +00:00
[3.10] Fix typos in the Python directory (GH-28767) (GH-28799)
(cherry picked from commit db693df3e1
)
This commit is contained in:
parent
212140dceb
commit
ccd82a0800
6 changed files with 8 additions and 8 deletions
|
@ -6157,7 +6157,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 ||
|
||||
|
@ -6785,7 +6785,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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue