cpython icon indicating copy to clipboard operation
cpython copied to clipboard

CACHE and SWAP documentation is vague with the meaning of the oparg

Open MatthieuDartiailh opened this issue 3 years ago • 0 comments

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

MatthieuDartiailh avatar Aug 31 '22 11:08 MatthieuDartiailh