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

Function show_code

Lib/dis.py:278–283  ·  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

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

Callers

nothing calls this directly

Calls 1

code_infoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…