MCPcopy Index your code
hub / github.com/python/cpython / print

Method print

Tools/cases_generator/parsing.py:180–187  ·  view source on GitHub ↗
(self, out:CWriter)

Source from the content-addressed store, hash-verified

178 endif: lx.Token
179
180 def print(self, out:CWriter) -> None:
181 out.emit(self.condition)
182 for stmt in self.body:
183 stmt.print(out)
184 if self.else_body is not None:
185 out.emit("#else\n")
186 for stmt in self.else_body:
187 stmt.print(out)
188
189 def accept(self, visitor: Visitor) -> None:
190 visitor(self)

Callers

nothing calls this directly

Calls 2

emitMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected