]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)
authorSam Gross <colesbury@gmail.com>
Thu, 24 Oct 2024 17:59:23 +0000 (13:59 -0400)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2024 17:59:23 +0000 (13:59 -0400)
commit4b55d53316f607fdd83831e92f585288842c8988
tree66c04eb6da65c88fd5d44653204bceadf4c82e49
parentf27ba61e56b60c186beac9349f13027ac8fd8e5e
[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)

When formatting the AST as a string, infinite values are replaced by
1e309, which evaluates to infinity. The initialization of this string
replacement was not thread-safe in the free threading build.
(cherry picked from commit 427dcf24de4e06d239745d74d08c4b2e541dca5a)
Doc/data/python3.13.abi
Include/internal/pycore_global_objects.h
Include/internal/pycore_global_objects_fini_generated.h
Include/internal/pycore_global_strings.h
Include/internal/pycore_runtime_init_generated.h
Include/internal/pycore_unicodeobject_generated.h
Parser/asdl_c.py
Python/Python-ast.c
Python/ast_unparse.c