]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-134280: Disable constant folding for ~ with a boolean argument (GH-134982...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 2 Jul 2025 08:28:09 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Wed, 2 Jul 2025 08:28:09 +0000 (11:28 +0300)
commit8ba024ddf5678554a04ebd4208baffb07995dd4d
treeec4cded4bc112c28811cafd496a564ef02e0dbc6
parent3bc42942af865a036282f7c9e0011fe8528b03c1
[3.14] gh-134280: Disable constant folding for ~ with a boolean argument (GH-134982) (GH-136185)

This moves the deprecation warning from compile time to run time.
(cherry picked from commit 86c3316183a79867e3c666d0830f897e16f0f339)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_peepholer.py
Misc/NEWS.d/next/Core_and_Builtins/2025-05-31-19-24-54.gh-issue-134280.NDVbzY.rst [new file with mode: 0644]
Python/flowgraph.c