MCPcopy Create free account
hub / github.com/RustPython/RustPython / show_code

Function show_code

Lib/dis.py:277–282  ·  view source on GitHub ↗

Print details of methods, functions, or code to *file*. If *file* is not provided, the output is printed on stdout.

(co, *, file=None)

Source from the content-addressed store, hash-verified

275 return "\n".join(lines)
276
277def show_code(co, *, file=None):
278 """Print details of methods, functions, or code to *file*.
279
280 If *file* is not provided, the output is printed on stdout.
281 """
282 print(code_info(co), file=file)
283
284Positions = collections.namedtuple(
285 'Positions',

Callers

nothing calls this directly

Calls 2

code_infoFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected