Skip to content

Commit b3f80aa

Browse files
Add a comment.
1 parent 5a12713 commit b3f80aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/crossinterp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,10 @@ get_script_xidata(PyThreadState *tstate, PyObject *obj, int pure,
865865
if (code == NULL) {
866866
goto error;
867867
}
868+
// Compiled text can't have args or any return statements,
869+
// nor be a closure. It can use globals though.
868870
if (!pure) {
869-
// It can't be a closure.
871+
// We don't need to check for globals either.
870872
checked = 1;
871873
}
872874
}

0 commit comments

Comments
 (0)