diff options
author | Brandt Bucher <brandt@python.org> | 2021-05-02 13:02:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-02 13:02:10 -0700 |
commit | 0ad1e0384c8afc5259a6d03363491d89500a5d03 (patch) | |
tree | 66debec62434d9503dd8c3b60c22dc99dcd15f95 /Python/ceval.c | |
parent | 7d2b83e9f092a2ea1f715fe028f7c48324bee756 (diff) | |
download | cpython3-0ad1e0384c8afc5259a6d03363491d89500a5d03.tar.gz |
bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 866c57afdb..25548e34db 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -4399,6 +4399,14 @@ main_loop: DISPATCH(); } + case TARGET(ROT_N): { + PyObject *top = TOP(); + memmove(&PEEK(oparg - 1), &PEEK(oparg), + sizeof(PyObject*) * (oparg - 1)); + PEEK(oparg) = top; + DISPATCH(); + } + case TARGET(EXTENDED_ARG): { int oldoparg = oparg; NEXTOPARG(); |