===== CPYTHON vs. OPY Overview # A tibble: 5 x 3 table_name cpython opy 1 frames 2327 2327 2 names 28812 51161 3 consts 12310 11281 4 flags 4945 4909 5 ops 106586 110519 ===== 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/core/completion.pyc Matches cell arena 3 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell cell display 4 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalRHS cell self 5 /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/core/completion.pyc Matches cell arena 3 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell cell display 4 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalRHS cell self 5 _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/core/completion.pyc Matches LOAD_CLOSURE 0 4 /home/andy/git/oilshell/oil/core/completion.pyc Matches MAKE_CLOSURE 0 5 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell LOAD_CLOSURE 0 6 /home/andy/git/oilshell/oil/core/process.pyc InitInteractiveShell MAKE_CLOSURE 0 7 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalRHS LOAD_CLOSURE 0 8 /home/andy/git/oilshell/oil/oil_lang/expr_eval.pyc EvalRHS MAKE_CLOSURE 0 9 /home/andy/git/oilshell/oil/osh/builtin.pyc _PrintDirStack LOAD_CLOSURE 0 10 /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/core/completion.pyc Matches LOAD_CLOSURE 0 4 _build/oil/bytecode-opy/core/completion.pyc Matches MAKE_CLOSURE 0 5 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell LOAD_CLOSURE 0 6 _build/oil/bytecode-opy/core/process.pyc InitInteractiveShell MAKE_CLOSURE 0 7 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalRHS LOAD_CLOSURE 0 8 _build/oil/bytecode-opy/oil_lang/expr_eval.pyc EvalRHS MAKE_CLOSURE 0 9 _build/oil/bytecode-opy/osh/builtin.pyc _PrintDirStack LOAD_CLOSURE 0 10 _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 9 2 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 294 3 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 295 4 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 294 5 _build/oil/bytecode-opy/bin/oil.pyc ShellMain DELETE_FAST 295 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)