mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-43754: Eliminate bindings for partial pattern matches (GH-25229)
This commit is contained in:
parent
7d2b83e9f0
commit
0ad1e0384c
10 changed files with 575 additions and 345 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue