summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-09-25 14:51:25 (GMT)
committerGitHub <noreply@github.com>2024-09-25 14:51:25 (GMT)
commit78aeb38f7d880a340295214abc4f7e77ffdad509 (patch)
tree8944d52302e56f98bef775d2599c6eee3c4db3b6 /Doc
parentc58c572a65eb5b93d054e779df289e975a0b9864 (diff)
downloadcpython-78aeb38f7d880a340295214abc4f7e77ffdad509.zip
cpython-78aeb38f7d880a340295214abc4f7e77ffdad509.tar.gz
cpython-78aeb38f7d880a340295214abc4f7e77ffdad509.tar.bz2
gh-124285: Fix bug where bool() is called multiple times for the same part of a boolean expression (#124394)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index cad7319..662c890 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -1872,6 +1872,12 @@ but are replaced by real opcodes or removed before bytecode is generated.
Undirected relative jump instructions which are replaced by their
directed (forward/backward) counterparts by the assembler.
+.. opcode:: JUMP_IF_TRUE
+.. opcode:: JUMP_IF_FALSE
+
+ Conditional jumps which do not impact the stack. Replaced by the sequence
+ ``COPY 1``, ``TO_BOOL``, ``POP_JUMP_IF_TRUE/FALSE``.
+
.. opcode:: LOAD_CLOSURE (i)
Pushes a reference to the cell contained in slot ``i`` of the "fast locals"