Slide 50
Slide 50 text
if sys.platform in ('win32', 'cygwin', 'cli'):
raise RuntimeError('foobar does not support Windows at the moment')
vi = sys.version_info
if vi < (3, 5):
raise RuntimeError('foobar requires Python 3.5 or greater’)
if vi[:2] == (3, 6):
if vi.releaselevel == 'beta' and vi.serial < 3:
raise RuntimeError('foobar requires Python 3.5 or 3.6b3 or greater')
py
@hackebrot