Check for platform.python_version[:3] (python3.10)
tucked opened this issue · 1 comments
tucked commented
Very similar to YTT101, but for platform.python_version
:
Python 3.10.0a2+ (heads/master:bbeb2d2, Nov 13 2020, 10:34:11)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> platform.python_version()[:3]
'3.1'