Python Forum
how set/change env var PYTHONOPTIMIZE in Python 3 / 3.7 / 3.8 ????
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how set/change env var PYTHONOPTIMIZE in Python 3 / 3.7 / 3.8 ????
#1
how set/change env var PYTHONOPTIMIZE in Python 3 / 3.7 / 3.8 ????

I want to skip assertion... how?

a = input("enter a number: ")

assert int(a) > 0 or int(a) < 0, "a is zero" # also a != 0

# https://docs.python.org/3/using/cmdline....ONOPTIMIZE

"""
PYTHONOPTIMIZE
If this is set to a non-empty string it is equivalent to specifying the -O option. If set to an integer, it is equivalent to specifying -O multiple times.
"""
Reply


Messages In This Thread
how set/change env var PYTHONOPTIMIZE in Python 3 / 3.7 / 3.8 ???? - by lsepolis123 - Aug-02-2020, 03:29 PM

Forum Jump:

User Panel Messages

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