On Saturday, August 2, 2025 at 6:20:07 AM UTC-5 Edward K. Ream wrote:
> PR
#4404 (in progress)...supports leoAst.py so that it works with Python 3.14. There is no reason to support leoAst.py so that it works with Python 3.15 or beyond.
Here are some more notes:
- The release notes for Leo 6.8.7 will announce that leoAst.py is deprecated. If nobody uses leoAst.py, that may be the only change ever needed!
- The
What's new with Python 3.15 page does not (for the moment) list any changes that affect Python's ast module. So leoAst.py might continue to work through Python 3.15. There is no similar page for Python 3.16, so that's all I can say now.
- I plan to leave Leo's unit tests as they are. The first sign that leoAst.py needs work will likely be the failure of the test TestTokens.test_visitors_exist. Future maintainers can then decide whether to retire leoAst.py.
Summary
My plan is to make minimal changes and wait and see what to do next.
Edward