bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)

This commit is contained in:
Brandt Bucher 2021-05-02 13:02:10 -07:00 committed by GitHub
parent 7d2b83e9f0
commit 0ad1e0384c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 575 additions and 345 deletions

View file

@ -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();