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

Method get_disassembly

Lib/test/test_dis.py:1486–1492  ·  view source on GitHub ↗
(self, func, lasti=-1, wrapper=True, **kwargs)

Source from the content-addressed store, hash-verified

1484
1485 # Run the tests again, using the file arg instead of print
1486 def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs):
1487 output = io.StringIO()
1488 if wrapper:
1489 dis.dis(func, file=output, **kwargs)
1490 else:
1491 dis.disassemble(func, lasti, file=output, **kwargs)
1492 return output.getvalue()
1493
1494
1495if dis.code_info.__doc__ is None:

Callers

nothing calls this directly

Calls 2

getvalueMethod · 0.95
disMethod · 0.80

Tested by

no test coverage detected