Skip to content

Commit a8425a6

Browse files
committed
review comments
1 parent 76077cd commit a8425a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/symtable.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ analyze_name(PySTEntryObject *ste, PyObject *scopes, PyObject *name, long flags,
560560
}
561561

562562
static int
563-
is_free_in_children(PySTEntryObject *entry, PyObject *key) {
563+
is_free_in_any_child(PySTEntryObject *entry, PyObject *key) {
564564
for (Py_ssize_t i = 0; i < PyList_GET_SIZE(entry->ste_children); i++) {
565565
PySTEntryObject *child_ste = (PySTEntryObject *)PyList_GET_ITEM(
566566
entry->ste_children, i);
@@ -608,7 +608,7 @@ inline_comprehension(PySTEntryObject *ste, PySTEntryObject *comp,
608608
// free vars in comprehension that are locals in outer scope can
609609
// now simply be locals, unless they are free in comp children
610610
if ((PyLong_AsLong(existing) & DEF_BOUND) &&
611-
!is_free_in_children(comp, k)) {
611+
!is_free_in_any_child(comp, k)) {
612612
if (PySet_Discard(comp_free, k) < 0) {
613613
return 0;
614614
}

0 commit comments

Comments
 (0)