dis python

This commit is contained in:
Mari Wahl 2014-11-14 15:44:23 -05:00
parent 0aaaa30fc1
commit 6228cf47ff

View File

@ -0,0 +1,12 @@
#!/usr/bin/python
#example of dis
import dis
def foo(a):
x = 3
return x + a
print(dis.dis(foo.func_code))