===== CPYTHON vs. OPY Overview # A tibble: 5 x 3 table_name cpython opy 1 frames 2362 2362 2 names 29413 52263 3 consts 12552 11501 4 flags 5046 5008 5 ops 109038 112963 ===== Cell Variables CPython path code_name kind name 1 /home/andy/git/oilshell/oil/bin/oil.pyc _InitReadline cell display 2 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain cell splitter 3 /home/andy/git/oilshell/oil/core/completion.pyc Matches cell arena 4 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell cell display 5 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr cell self 6 /home/andy/git/oilshell/oil/osh/builtin.pyc _PrintDirStack cell home_dir OPy path code_name kind name 1 _build/oil/bytecode-opy/bin/oil.pyc _InitReadline cell display 2 _build/oil/bytecode-opy/bin/oil.pyc ShellMain cell splitter 3 _build/oil/bytecode-opy/core/completion.pyc Matches cell arena 4 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell cell display 5 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalExpr cell self 6 _build/oil/bytecode-opy/osh/builtin.pyc _PrintDirStack cell home_dir ===== CLOSURE bytecodes CPython path code_name op_name op_arg 1 /home/andy/git/oilshell/oil/bin/oil.pyc _InitReadline LOAD_CLOSURE 0 2 /home/andy/git/oilshell/oil/bin/oil.pyc _InitReadline MAKE_CLOSURE 0 3 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain LOAD_CLOSURE 0 4 /home/andy/git/oilshell/oil/bin/oil.pyc ShellMain MAKE_CLOSURE 0 5 /home/andy/git/oilshell/oil/core/completion.pyc Matches LOAD_CLOSURE 0 6 /home/andy/git/oilshell/oil/core/completion.pyc Matches MAKE_CLOSURE 0 7 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell LOAD_CLOSURE 0 8 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell MAKE_CLOSURE 0 9 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr LOAD_CLOSURE 0 10 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalExpr MAKE_CLOSURE 0 11 /home/andy/git/oilshell/oil/osh/builtin.pyc _PrintDirStack LOAD_CLOSURE 0 12 /home/andy/git/oilshell/oil/osh/builtin.pyc _PrintDirStack MAKE_CLOSURE 0 OPy path code_name op_name op_arg 1 _build/oil/bytecode-opy/bin/oil.pyc _InitReadline LOAD_CLOSURE 0 2 _build/oil/bytecode-opy/bin/oil.pyc _InitReadline MAKE_CLOSURE 0 3 _build/oil/bytecode-opy/bin/oil.pyc ShellMain LOAD_CLOSURE 0 4 _build/oil/bytecode-opy/bin/oil.pyc ShellMain MAKE_CLOSURE 0 5 _build/oil/bytecode-opy/core/completion.pyc Matches LOAD_CLOSURE 0 6 _build/oil/bytecode-opy/core/completion.pyc Matches MAKE_CLOSURE 0 7 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell LOAD_CLOSURE 0 8 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell MAKE_CLOSURE 0 9 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalExpr LOAD_CLOSURE 0 10 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalExpr MAKE_CLOSURE 0 11 _build/oil/bytecode-opy/osh/builtin.pyc _PrintDirStack LOAD_CLOSURE 0 12 _build/oil/bytecode-opy/osh/builtin.pyc _PrintDirStack MAKE_CLOSURE 0 ===== Rare bytecodes DELETE_FAST in CPython [1] path code_name op_name op_arg <0 rows> (or 0-length row.names) DELETE_FAST in OPy path code_name op_name op_arg 1 _build/oil/bytecode-opy/bin/oil.pyc SourceStartupFile DELETE_FAST 8 2 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 307 3 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 308 4 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 307 5 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 308 6 _build/oil/bytecode-opy/core/dev.pyc MaybeDump DELETE_FAST 18 STORE_GLOBAL in OPy path code_name op_name op_arg 1 _build/oil/bytecode-opy/core/pyutil.pyc GetResourceLoader STORE_GLOBAL 0 2 _build/oil/bytecode-opy/core/pyutil.pyc GetResourceLoader STORE_GLOBAL 0 3 _build/oil/bytecode-opy/core/pyutil.pyc GetResourceLoader STORE_GLOBAL 0 STORE_SLICE+1 in OPy [1] path code_name op_name op_arg <0 rows> (or 0-length row.names)