https://github.com/python/cpython/commit/ff7b5d44a00acfa681afd8aea70abc66ea536723
commit: ff7b5d44a00acfa681afd8aea70abc66ea536723
branch: main
author: Ken Jin <ken...@python.org>
committer: Fidget-Spinner <kenjin4...@gmail.com>
date: 2025-06-28T18:30:30+08:00
summary:

gh-132732: Fix up pure types in JIT (GH-136050)

Fix up pure types in JIT

files:
M Python/optimizer_symbols.c

diff --git a/Python/optimizer_symbols.c b/Python/optimizer_symbols.c
index bd3ec615d08592..8a3df236c80626 100644
--- a/Python/optimizer_symbols.c
+++ b/Python/optimizer_symbols.c
@@ -212,7 +212,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym)
     PyTypeObject *typ = Py_TYPE(const_val);
     return (typ == &PyUnicode_Type) ||
            (typ == &PyFloat_Type) ||
-           (typ == &PyTuple_Type) ||
+           (typ == &_PyNone_Type) ||
            (typ == &PyBool_Type);
 }
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to