How can I check what version of the Python Interpreter is interpreting my script?
I like sys.hexversion for stuff like this.
sys.hexversion
http://docs.python.org/library/sys.html#sys.hexversion
>>> import sys >>> sys.hexversion 33883376 >>> '%x' % sys.hexversion '20504f0' >>> sys.hexversion < 0x02060000 True