summaryrefslogtreecommitdiffstats
path: root/Lib/_opcode_metadata.py
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-06-29 20:49:54 (GMT)
committerGitHub <noreply@github.com>2023-06-29 20:49:54 (GMT)
commit7b2d94d87513967b357c658c6e7e1b8c8d02487d (patch)
treebdd79e2c20b235f3d4c1272c8c8e2f1880bfb129 /Lib/_opcode_metadata.py
parent6e9f83d9aee34192de5d0ef7285be23514911ccd (diff)
downloadcpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.zip
cpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.tar.gz
cpython-7b2d94d87513967b357c658c6e7e1b8c8d02487d.tar.bz2
GH-106008: Make implicit boolean conversions explicit (GH-106003)
Diffstat (limited to 'Lib/_opcode_metadata.py')
-rw-r--r--Lib/_opcode_metadata.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/_opcode_metadata.py b/Lib/_opcode_metadata.py
index c0a6825..b0fcd1a 100644
--- a/Lib/_opcode_metadata.py
+++ b/Lib/_opcode_metadata.py
@@ -4,6 +4,14 @@
# Do not edit!
_specializations = {
+ "TO_BOOL": [
+ "TO_BOOL_ALWAYS_TRUE",
+ "TO_BOOL_BOOL",
+ "TO_BOOL_INT",
+ "TO_BOOL_LIST",
+ "TO_BOOL_NONE",
+ "TO_BOOL_STR",
+ ],
"BINARY_OP": [
"BINARY_OP_MULTIPLY_INT",
"BINARY_OP_ADD_INT",