From 1dce1aa2171a5e97f01ba9bc27e3a2c9f032eeae Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 27 Jun 2025 15:22:49 +0300 Subject: [PATCH] gh-132732: Treat `bytes` as constants in `_Py_uop_sym_is_safe_const` --- Python/optimizer_symbols.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/optimizer_symbols.c b/Python/optimizer_symbols.c index e4dbca8362f4ce..dd7c4fee5e1a34 100644 --- a/Python/optimizer_symbols.c +++ b/Python/optimizer_symbols.c @@ -209,6 +209,7 @@ _Py_uop_sym_is_safe_const(JitOptContext *ctx, JitOptRef sym) PyTypeObject *typ = Py_TYPE(const_val); return (typ == &PyLong_Type) || (typ == &PyUnicode_Type) || + (typ == &PyBytes_Type) || (typ == &PyFloat_Type) || (typ == &PyTuple_Type) || (typ == &PyBool_Type); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy