Several modules exist which can be used to investigate the internals of python
dis, ipdb, inspect
disassemble
import dis
dis.dis(fn)
trace
import ipdb
ipdb.set_trace()
fn()
source
import inspect
inspect.getsource(fn)
Several modules exist which can be used to investigate the internals of python
dis, ipdb, inspect
import dis
dis.dis(fn)
import ipdb
ipdb.set_trace()
fn()
import inspect
inspect.getsource(fn)