[ not(major >= 3 and minor >= 4) ] fails for '4.0':
>>> major=4
>>> minor=0
>>> if not (major >= 3 and minor >= 5):
... print('This example only works with Python 3.5 and greater')
...
This example only works with Python 3.5 and greater
[ not(major >= 3 and minor >= 4) ] fails for '4.0':
>>> major=4
>>> minor=0
>>> if not (major >= 3 and minor >= 5):
... print('This example only works with Python 3.5 and greater')
...
This example only works with Python 3.5 and greater
utACK 3cfce8f
utACK 3cfce8f23b37936a36cd386d47144bc725740391
[ not(major >= 3 and minor >= 4) ] fails for '4.0'
29 | @@ -30,7 +30,7 @@ 30 | import struct 31 | import sys 32 | 33 | -if not (sys.version_info.major >= 3 and sys.version_info.minor >= 5): 34 | +if not (sys.version_info.major > 3 or (sys.version_info.major == 3 and sys.version_info.minor >= 5)):
what about
if (sys.version_info.major, sys.version_info.minor) < (3, 5):
What magic is this?
utACK 066d2973a6fff0bf494c4a0000218fe72983808b
utACK 066d297
utACK 066d2973a6fff0bf494c4a0000218fe72983808b