Fix typos in compile.c comments (GH-12752)

This commit is contained in:
Simeon 2019-04-09 19:36:57 -04:00 committed by Miss Islington (bot)
parent 0e10766574
commit 63b5fc5f42
1 changed files with 2 additions and 2 deletions

View File

@ -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));