-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
~bool deprecation not reported for literals #134280
Copy link
Copy link
Closed
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.13bugs and security fixesbugs and security fixes3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
Related to: #103487
A DeprecationWarning is reported for
var.py, but not forliteral.py.What's interesting is that there's a test for this:
cpython/Lib/test/test_bool.py
Lines 68 to 71 in 42d03f3
eval("~True")is used instead of just~TrueCPython versions tested on:
CPython main branch, 3.13
Operating systems tested on:
Linux
Linked PRs