Skip to content

Commit

Permalink
Add comment explaining passing inputs twice
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch committed Jan 11, 2024
1 parent 7639089 commit 8cb0df0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guppy/compiler/expr_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ def compile_generators(elt: ast.expr, gens: list[DesugaredGenerator]) -> None:
[self.visit(gen.iter), self.visit(list_name)],
)

# If the iterator is finished, output the iterator and list as is
# If the iterator is finished, output the iterator and list as is (this
# is achieved by passing `inputs, inputs` below)
with self._new_case(inputs, inputs, cond):
pass

Expand Down

0 comments on commit 8cb0df0

Please sign in to comment.