aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2025-04-28 06:10:28 -0700
committerGitHub <noreply@github.com>2025-04-28 06:10:28 -0700
commit922049b613d155ade4c4a8f83452767bea003a9f (patch)
treec466659499780de432b0d77a803d3adfbe739174 /Python/bytecodes.c
parent5bf0f3666e272798789ff900b1071760c73b46fd (diff)
downloadcpython-922049b613d155ade4c4a8f83452767bea003a9f.tar.gz
cpython-922049b613d155ade4c4a8f83452767bea003a9f.zip
gh-130907: Treat all module-level annotations as conditional (#131550)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index f5c6e734a79..40fb0d769af 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -2026,6 +2026,10 @@ dummy_func(
}
}
+ pseudo(ANNOTATIONS_PLACEHOLDER, (--)) = {
+ NOP,
+ };
+
inst(DICT_UPDATE, (dict, unused[oparg - 1], update -- dict, unused[oparg - 1])) {
PyObject *dict_o = PyStackRef_AsPyObjectBorrow(dict);
PyObject *update_o = PyStackRef_AsPyObjectBorrow(update);