summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dis.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 7e4792e..633c01b 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -901,12 +901,14 @@ def _test():
import argparse
parser = argparse.ArgumentParser()
+ parser.add_argument('-C', '--show-caches', action='store_true',
+ help='show inline caches')
parser.add_argument('infile', type=argparse.FileType('rb'), nargs='?', default='-')
args = parser.parse_args()
with args.infile as infile:
source = infile.read()
code = compile(source, args.infile.name, "exec")
- dis(code)
+ dis(code, show_caches=args.show_caches)
if __name__ == "__main__":
_test()