mirror of https://github.com/python/cpython
Fix typos in compile.c comments (GH-12752)
This commit is contained in:
parent
0e10766574
commit
63b5fc5f42
|
@ -1216,7 +1216,7 @@ merge_consts_recursive(struct compiler *c, PyObject *o)
|
||||||
}
|
}
|
||||||
|
|
||||||
// We registered o in c_const_cache.
|
// We registered o in c_const_cache.
|
||||||
// When o is a tuple or frozenset, we want to merge it's
|
// When o is a tuple or frozenset, we want to merge its
|
||||||
// items too.
|
// items too.
|
||||||
if (PyTuple_CheckExact(o)) {
|
if (PyTuple_CheckExact(o)) {
|
||||||
Py_ssize_t len = PyTuple_GET_SIZE(o);
|
Py_ssize_t len = PyTuple_GET_SIZE(o);
|
||||||
|
@ -1246,7 +1246,7 @@ merge_consts_recursive(struct compiler *c, PyObject *o)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (PyFrozenSet_CheckExact(o)) {
|
else if (PyFrozenSet_CheckExact(o)) {
|
||||||
// *key* is tuple. And it's first item is frozenset of
|
// *key* is tuple. And its first item is frozenset of
|
||||||
// constant keys.
|
// constant keys.
|
||||||
// See _PyCode_ConstantKey() for detail.
|
// See _PyCode_ConstantKey() for detail.
|
||||||
assert(PyTuple_CheckExact(key));
|
assert(PyTuple_CheckExact(key));
|
||||||
|
|
Loading…
Reference in New Issue