You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importplatformifplatform.python_version_tuple() < ('3','2','0'):
raiseRuntimeError('This script now requires Python 3.2 or above')
python_version_tuple returns a string tuple of the python version - e.g. ('3','10','12')
String comparison in python will return incorrectly in this case
Python 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print((platform.python_version_tuple()) < ('3','2','0'))
True
Proposed change
importsysifsys.version_info< (3,2):
raiseRuntimeError('This script now requires Python 3.2 or above')
The text was updated successfully, but these errors were encountered:
python_version_tuple returns a string tuple of the python version - e.g. ('3','10','12')
String comparison in python will return incorrectly in this case
Proposed change
The text was updated successfully, but these errors were encountered: