summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/dis.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/dis.py b/Lib/dis.py
index 1718e39..6b3e9ef 100644
--- a/Lib/dis.py
+++ b/Lib/dis.py
@@ -1125,6 +1125,8 @@ def main():
help='show instruction offsets')
parser.add_argument('-P', '--show-positions', action='store_true',
help='show instruction positions')
+ parser.add_argument('-S', '--specialized', action='store_true',
+ help='show specialized bytecode')
parser.add_argument('infile', nargs='?', default='-')
args = parser.parse_args()
if args.infile == '-':
@@ -1135,7 +1137,8 @@ def main():
with open(args.infile, 'rb') as infile:
source = infile.read()
code = compile(source, name, "exec")
- dis(code, show_caches=args.show_caches, show_offsets=args.show_offsets, show_positions=args.show_positions)
+ dis(code, show_caches=args.show_caches, adaptive=args.specialized,
+ show_offsets=args.show_offsets, show_positions=args.show_positions)
if __name__ == "__main__":
main()