summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorpenguin_wwy <940375606@qq.com>2022-01-06 11:38:35 (GMT)
committerGitHub <noreply@github.com>2022-01-06 11:38:35 (GMT)
commit3db762db72cc0da938614b1e414abb1e12ca4094 (patch)
treeeef08b55d931522d2f83ed7b6f2383d27d8a4ffe /Doc/whatsnew
parent35d6540c904ef07b8602ff014e520603f84b5886 (diff)
downloadcpython-3db762db72cc0da938614b1e414abb1e12ca4094.zip
cpython-3db762db72cc0da938614b1e414abb1e12ca4094.tar.gz
cpython-3db762db72cc0da938614b1e414abb1e12ca4094.tar.bz2
bpo-46031: add POP_JUMP_IF_NOT_NONE and POP_JUMP_IF_NONE (GH-30019)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 6794e82..98ff2d4 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -398,6 +398,9 @@ CPython bytecode changes
* Added :opcode:`COPY`, which pushes the *i*-th item to the top of the stack.
The item is not removed from its original location.
+* Add :opcode:`POP_JUMP_IF_NOT_NONE` and :opcode:`POP_JUMP_IF_NONE` opcodes to
+ speed up conditional jumps.
+
* :opcode:`JUMP_IF_NOT_EXC_MATCH` no longer pops the active exception.