aboutsummaryrefslogtreecommitdiff
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c8
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();