From 6228cf47ff484d041169db4fedf3d92f35af9f7f Mon Sep 17 00:00:00 2001 From: Mari Wahl Date: Fri, 14 Nov 2014 15:44:23 -0500 Subject: [PATCH] dis python --- Reverse_Engineering/python/example_dis.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Reverse_Engineering/python/example_dis.py diff --git a/Reverse_Engineering/python/example_dis.py b/Reverse_Engineering/python/example_dis.py new file mode 100644 index 0000000..6518495 --- /dev/null +++ b/Reverse_Engineering/python/example_dis.py @@ -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))