mirror of
https://github.com/python/cpython.git
synced 2025-11-09 10:01:42 +00:00
GH-132554: Fix tier2 FOR_ITER implementation and optimizations (GH-135137)
This commit is contained in:
parent
d9cad074d5
commit
b90ecea9e6
12 changed files with 155 additions and 173 deletions
|
|
@ -496,7 +496,7 @@ def _push_defined_outputs(self) -> None:
|
|||
f"Expected '{undefined}' to be defined before '{out.name}'"
|
||||
else:
|
||||
undefined = out.name
|
||||
while len(self.outputs) > self.peeks and not self.needs_defining(self.outputs[0]):
|
||||
while len(self.outputs) > self.peeks and not self.needs_defining(self.outputs[self.peeks]):
|
||||
out = self.outputs.pop(self.peeks)
|
||||
self.stack.push(out)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue