Merge branch 'python-3.0-to-3.2' into python-2.4

This commit is contained in:
rocky
2023-03-25 02:45:06 -04:00
26 changed files with 248 additions and 257 deletions

View File

@@ -1096,7 +1096,12 @@ class NonterminalActions:
self.write("{")
if node[0] in ["LOAD_SETCOMP", "LOAD_DICTCOMP"]:
if self.version == (3, 0):
iter_index = 6
if len(node) >= 6:
iter_index = 6
else:
assert node[1].kind.startswith("MAKE_FUNCTION")
iter_index = 2
pass
else:
iter_index = 1
self.comprehension_walk_newer(node, iter_index=iter_index, code_index=0)