Aug-02-2020, 03:29 PM
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.
"""
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.
"""