Interpreter Version¶
Main point
It is recommended to use Python 3.7.
There is an informative summary of new features on Real Python. More detailed description can be found in the official documentation.
To name some notable additions:
- Data Classes can easily replace namedtuples and attrs.
- Typing Forward Reference makes type hints even more programmer-friendly.
- The “asyncio” module has received many new features along with usability and performance improvements. For instance, new “asyncio.run()” automatically creates an event loop, runs a task on it and finally closes the loop when the task is done.
Nonetheless, if you still use previous version of Python (especially 3.6), it is possible to backport some of the new features e.g. Data Classes.