+ 2

What do the op-codes in the disassembled Python code mean? [Bytecode]

Here's the code: https://code.sololearn.com/cpddmYo2RSOh/?ref=app For example, what does LOAD_CONST mean?

16th Jul 2021, 7:00 AM
Calvin Thomas
Calvin Thomas - avatar
2 Answers
+ 4
Here try this to line up the opcode with the opname then you can look them up in the docs (toward the bottom of the page) https://docs.python.org/3/library/dis.html#python-bytecode-instructions https://code.sololearn.com/c3saOeC7Cz6e/?ref=app
16th Jul 2021, 8:29 AM
ChaoticDawg
ChaoticDawg - avatar
+ 2
ChaoticDawg Thank you for the link.
16th Jul 2021, 8:33 AM
Calvin Thomas
Calvin Thomas - avatar