Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
code to run in python3
#7
(Nov-12-2017, 01:44 PM)heiner55 Wrote: Can I do this shorter or better ?

 if sys.version_info < (3,6): print("ERROR: This script needs Python 3.6 or later"); exit(99) 

my emphasis is on making it switch to the correct version.  do you think that is a bad idea?  or maybe it should anounce the switch?  or do you think it should just abort?

that tutorial was long and i could not read it all.  it started to get confusing as it seemed to be about packaging and installing.  and i could not figure out what the "wheel" thing was about.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
code to run in python3 - by Skaperen - Nov-05-2017, 01:30 AM
RE: code to run in python3 - by heiner55 - Nov-11-2017, 06:12 PM
RE: code to run in python3 - by Larz60+ - Nov-11-2017, 07:45 PM
RE: code to run in python3 - by Skaperen - Nov-12-2017, 04:23 AM
RE: code to run in python3 - by heiner55 - Nov-12-2017, 01:44 PM
RE: code to run in python3 - by Skaperen - Nov-13-2017, 02:44 AM
RE: code to run in python3 - by snippsat - Nov-12-2017, 06:55 PM
RE: code to run in python3 - by heiner55 - Nov-13-2017, 03:16 AM
RE: code to run in python3 - by Skaperen - Nov-13-2017, 04:03 AM
RE: code to run in python3 - by wavic - Nov-13-2017, 08:47 AM
RE: code to run in python3 - by Skaperen - Nov-13-2017, 09:44 AM
RE: code to run in python3 - by wavic - Nov-13-2017, 10:15 AM
RE: code to run in python3 - by Skaperen - Nov-14-2017, 01:02 AM
RE: code to run in python3 - by metulburr - Nov-14-2017, 02:19 AM
RE: code to run in python3 - by Skaperen - Nov-14-2017, 07:07 AM
RE: code to run in python3 - by metulburr - Nov-14-2017, 06:48 PM
RE: code to run in python3 - by Skaperen - Nov-15-2017, 01:15 AM
RE: code to run in python3 - by metulburr - Nov-15-2017, 01:41 AM
RE: code to run in python3 - by Skaperen - Nov-15-2017, 02:47 AM
RE: code to run in python3 - by metulburr - Nov-15-2017, 04:41 AM
RE: code to run in python3 - by Skaperen - Nov-16-2017, 03:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What the difference between python2 and python3 when they running my code. lpangfeic 1 1,858 Nov-19-2019, 04:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020