pyloong / pythonic-project-guidelines

Set of guidelines and structure of a Python project.
https://pyloong.github.io/pythonic-project-guidelines/
313 stars 59 forks source link

Does it only support python above 3.10? Is it feasible if it is 3.8 #38

Open HiGPP opened 2 months ago

HiGPP commented 2 months ago

Does it only support python above 3.10? Is it feasible if it is 3.8

whg517 commented 2 months ago

@HiGPP Hello, the documentation tutorial works with python 3.8, but some of the sample code snippets in the documentation, or referenced dependencies may no longer support 3.8. It is highly recommended that you use python 3.10 or later.

The most recent update in the tutorial is based on python 3.10 implementation examples. Such as quick start and beginner tutorials. The project templates referenced here have passed python 3.10 and 3.11 tests. According to python version update records, [PEP 584] and PEP 604 was introduced in version 3.9, and some code snippets may already use this feature, so if in version 3.8, this part of the code will have syntax errors.

According to the python release cycle, python 3.8 will be EOL in 2024-10. The 3.10 support has now passed the half time and will be in 2026-10 EOL. So I recommend upgrading to 3.10 or later. The new version will bring more new features, better security features, and greater performance improvements.