pydoc > opcode

📛 NAME

opcode

🚀 Quick Reference

Use CaseCommandDescription
Look up opcode numberopcode.opmap['LOAD_CONST']Get integer opcode from name
Get opcode nameopcode.opname[100]Retrieve human-readable name from number
Check argument thresholdopcode.HAVE_ARGUMENTMinimum opcode value that requires an argument
Compute stack effectopcode.stack_effect(opcode, oparg)Calculate net stack change of an instruction
List all opcodesopcode.opmapDictionary mapping bytecode names to numbers
List opcode namesopcode.opnameIndexed list of bytecode names
Check if opcode is a jumpopcode.hasjrel / opcode.hasjabsLists of opcodes with relative/absolute jumps

🔗 MODULE REFERENCE

https://docs.python.org/3.10/library/opcode.html

The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.

📘 DESCRIPTION

opcode module - potentially shared between dis and other modules which operate on bytecodes (e.g. peephole optimizers).

⚙️ FUNCTIONS

🧮 stack_effect

stack_effect(opcode, oparg=None, /, *, jump=None)

Compute the stack effect of the opcode.

📊 DATA

📁 FILE

/usr/lib/python3.10/opcode.py

opcode
📛 NAME 🚀 Quick Reference 🔗 MODULE REFERENCE 📘 DESCRIPTION ⚙️ FUNCTIONS
🧮 stack_effect
📊 DATA 📁 FILE

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 15:05 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format