The STACK variable is described as like a Python list, so pushing to it should be done with .append() consistently throughout.
value = STACK.pop()
result = func(value)
- STACK.push(result)
+ STACK.append(result)
* ``oparg == 1``: call :func:`str` on *value*
* ``oparg == 2``: call :func:`repr` on *value*
value = STACK.pop()
result = value.__format__("")
- STACK.push(result)
+ STACK.append(result)
Used for implementing formatted literal strings (f-strings).
spec = STACK.pop()
value = STACK.pop()
result = value.__format__(spec)
- STACK.push(result)
+ STACK.append(result)
Used for implementing formatted literal strings (f-strings).
arg2 = STACK.pop()
arg1 = STACK.pop()
result = intrinsic2(arg1, arg2)
- STACK.push(result)
+ STACK.append(result)
The operand determines which intrinsic function is called: