PyDocs

Nav

Python Language Services

stack_effect

dis

function · Added in 3.4
  • stack_effect(opcode, oparg=None, *, jump=None)
Compute the stack effect of the opcode.
Changed in 3.8, 3.13
  • 3.8: Added jump parameter.
  • 3.13: If oparg is omitted (or None), the stack effect is now returned for oparg=0. Previously this was an error for opcodes that use their arg. It is also no longer an error to pass an integer oparg when the opcode does not use it; the oparg in this case is ignored.
0 Examples
No examples for dis/stack_effect.
See Also
No see-alsos for dis/stack_effect
0 Notes
No notes for stack_effect