[Tutor] Checking for Python version
didar.hossain at gmail.com
Tue Oct 6 15:59:41 CEST 2009
I am using the following code to check for the Python version -
t = os.sys.version_info[0:2]
if (t + t) < 6:
os.sys.exit("Need at least Python 2.4")
This snippet is put at the beginning of the single script file before
the rest of the code.
I need to check for the minimum specific version because I am using
Is there a prettier way or is this fine?
More information about the Tutor