]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-130599: use static constants str-to-int conversion (gh-130714)
authorNeil Schemenauer <nas-github@arctrix.com>
Tue, 4 Mar 2025 03:00:50 +0000 (19:00 -0800)
committerGitHub <noreply@github.com>
Tue, 4 Mar 2025 03:00:50 +0000 (19:00 -0800)
commit813bc5694bd8aa43165468c5ea1dc27af973611d
treec1f5b3b075d2c4ba5e8ed774a060db33b7d945b1
parentbbf197913ca984b79fee642a39bd61a997e24dd3
gh-130599: use static constants str-to-int conversion (gh-130714)

Avoid a data race in free-threaded builds due to mutating global arrays at
runtime.  Instead, compute the constants with an external Python script and
then define them as static global constant arrays.  These constants are
used by `long_from_non_binary_base()`.
Objects/longobject.c
Tools/c-analyzer/cpython/ignored.tsv
Tools/scripts/long_conv_tables.py [new file with mode: 0644]