4 ms·
Python just revels in introspection. The standard module dis[1] lets the programmer disassemble and display bytecode, and includes a full list of the opcodes (w
by fernly 9y ago
Python just revels in introspection. The standard module dis[1] lets the programmer disassemble and display bytecode, and includes a full list of the opcodes (which appear to be much simpler than the V8 ones described). The standard module ast[2] documents the AST used by the compiler.
[1] https://docs.python.org/3.5/library/dis.html#module-dis https://docs.python.org/3.5/library/dis.html#module-dis
[2] https://docs.python.org/3.5/library/ast.html#module-ast https://docs.python.org/3.5/library/ast.html#module-ast