cpython
cpython copied to clipboard
CACHE and SWAP documentation is vague with the meaning of the oparg
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.
- PR: gh-96462