zulip-terminal
zulip-terminal copied to clipboard
Consider changes needed/possible when Python 3.7 reaches end of life
This is the next iteration of https://github.com/zulip/zulip-terminal/issues/984, and is mainly for tracking. See that issue or those prior for potentially useful tools.
3.7 is due to reach end of life on 27 Jun 2023 according to https://endoflife.date/python or more officially https://devguide.python.org/#status-of-python-branches
Python 3.8 features to consider:
- Walrus syntax (unclear of benefits; was controversial?)
- Positional-only parameters
- Self-documenting f-strings (mainly for debugging?)
- TypedDict, Literal, Protocol, Final - are all in the standard library, not externally
Python 3.8 should also be generally faster at regular operations, based on the simple benchmark introduced: https://docs.python.org/3/whatsnew/3.8.html
This will also unblock (if appropriate) isort 5.12.
pygments 2.18.0 (unreleased) will depend upon 3.8.
pygments 2.18 is now released and supports Lean 4, which may be relevant to many users.