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 ????
#4
With IDLE in python 3.8 it works for me if I open IDLE with the -O switch on the command line
Output:
python3.8 -O -m idlelib
It seems that idle propagates the -O flag to the scripts that it runs.

With Thonny, it didn't work with the -O flag, but it worked with this command line (in linux)
Output:
PYTHONOPTIMIZE=1 python3.8 -m thonny
Reply


Messages In This Thread
RE: how set/change env var PYTHONOPTIMIZE in Python 3 / 3.7 / 3.8 ???? - by Gribouillis - Aug-03-2020, 05:49 AM

Forum Jump:

User Panel Messages

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