]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134280: Disable constant folding for ~ with a boolean argument (GH-134982)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 1 Jul 2025 17:24:04 +0000 (20:24 +0300)
committerGitHub <noreply@github.com>
Tue, 1 Jul 2025 17:24:04 +0000 (20:24 +0300)
commit86c3316183a79867e3c666d0830f897e16f0f339
tree1d219457f6013fc030011f412ebd7b8aa64402f9
parente0d6500b2d9a08beb7b607b846d1eeaa26706667
gh-134280: Disable constant folding for ~ with a boolean argument (GH-134982)

This moves the deprecation warning from compile time to run time.
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