Commit 07dc6bfd authored by Stefan Behnel's avatar Stefan Behnel

improve generated C code comment

parent d71ad15e
......@@ -9467,7 +9467,9 @@ class YieldExprNode(ExprNode):
nogil=not code.funcstate.gil_owned)
code.put_finish_refcount_context()
code.putln("/* return from generator, yielding value */")
code.putln("/* return from %sgenerator, %sing value */" % (
'async ' if self.in_async_gen else '',
'await' if self.is_await else 'yield'))
code.putln("%s->resume_label = %d;" % (
Naming.generator_cname, label_num))
if self.in_async_gen and not self.is_await:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment