MCPcopy Index your code
hub / github.com/python/mypy / emit_printf

Method emit_printf

mypyc/codegen/emit.py:285–288  ·  view source on GitHub ↗
(self, fmt: str, *args: str)

Source from the content-addressed store, hash-verified

283 self.fragments.extend(emitter.fragments)
284
285 def emit_printf(self, fmt: str, *args: str) -> None:
286 fmt = fmt.replace("\n", "\\n")
287 self.emit_line("printf(%s);" % ", ".join(['"%s"' % fmt] + list(args)))
288 self.emit_line("fflush(stdout);")
289
290 def temp_name(self) -> str:
291 self.context.temp_counter += 1

Callers

nothing calls this directly

Calls 4

emit_lineMethod · 0.95
listClass · 0.85
replaceMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected