You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
The current documentation says that CACHE and SWAP acts on the ith element of the stack but it is nowhere mentioned if the stack is indexed from 0 or 1. Looking at the actual implementation in ceval.c makes the answer obvious but it is tedious and the documentation could be improved I believe.
* Clarify the meaning of the oparg for CACHE and COPY opcode in dis doc
* Use STACK to describe stack operation in analogy with a Python list
* Remove (delta) from BEFORE_WITH since BEFORE_WITH does not take an argument
* Fix the description of the stack impact of multiple opcodes
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The current documentation says that CACHE and SWAP acts on the ith element of the stack but it is nowhere mentioned if the stack is indexed from 0 or 1. Looking at the actual implementation in ceval.c makes the answer obvious but it is tedious and the documentation could be improved I believe.
The text was updated successfully, but these errors were encountered: