adjust to removed APIs in ast module for python >=3.14#1519
adjust to removed APIs in ast module for python >=3.14#1519fkil wants to merge 1 commit intocea-sec:masterfrom
Conversation
ast.Num and ast.Str were deprecated with python 3.8 and are now removed with python3.14. This commit replaces uses of these APIs using ast.Constant. Consequentely, the behavior for python versions <3.8 will break
|
There are also problems due to the incompatibility of It would be good to have some feedback from the developers with regards to what types of changes, breaking or otherwise, are acceptable for PRs. |
|
Hi @fkil & @crimsonskylark Yep, maybe it's time to drop some "old" versions of python. |
|
https://endoflife.date/python:
I would drop everything below 3.10 honestly 🤷🏻♂️ |
|
I've looked into the failing regression test, and the cause seems to be an outdated z3 version. Updating to the most recent z3 version in optional_requirements.txt passes the test. I've also locally ran the same tests for python3.14 and they pass as well, with a small limitation: llvmlite does not provide wheels for python3.14 and its Should I bump the z3 version in this PR as well, or should that be a separate one? |
|
@crimsonskylark Regarding python-future: While newer versions aren't officially supported, they do not break 3.13 or 3.14 yet. While the dependency should probably be removed, I believe it should be a separate issue and patch set. |
|
Yes, of course - I didn't mean to hijack your PR. Sorry! |

ast.Num and ast.Str were deprecated with python 3.8 and are now removed with python3.14.
This commit replaces uses of these APIs using ast.Constant. Consequentely, the behavior for python versions <3.8 will break
Resolves #1518