head.daveops.net

Snippets for yer computer needs

Disassembly

Disassemble a code object

import dis
dis.dis(func)

http://akaptur.com/blog/2013/08/14/python-bytecode-fun-with-dis/