GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — gh-134280: Disable constant folding for ~ with a boolean argument by serhiy-storchaka · Pull Request #134982 · python/cpython Conversation
|
|
3.14 and 3.13 differ from main, so I would do backporting step by step. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If we can detect this in https://github.com/python/cpython/blob/main/Python/ast_preprocess.c then we get the warning in both static analysis and execution. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Yes, but we only add SyntaxWarning for very common errors. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is it hard to detect this in the preprocessor? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I do not know. But even a couple lines of code is a high price for this feature. And it will be more than a couple lines. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time. (cherry picked from commit 86c3316) Co-authored-by: Serhiy Storchaka <[email protected]>
|
GH-136185 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ent (GH-134982) (GH-136185) This moves the deprecation warning from compile time to run time. (cherry picked from commit 86c3316) Co-authored-by: Serhiy Storchaka <[email protected]>
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time.
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time.
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time.
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time.
…nt (pythonGH-134982) This moves the deprecation warning from compile time to run time.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.