DEV Community

loading...

Discussion on: Jan. 8th, 2021: What did you learn this week?

Collapse
learnbyexample profile image
Sundeep

Went through cli options for Python interactive shell (see docs.python.org/3/using/cmdline.html) and started using two of them:

-q : don't print version and copyright messages on interactive startup

-O : remove assert and __debug__-dependent statements; add .opt-1 before .pyc extension; also PYTHONOPTIMIZE=x

Also, idle3.9 -d will open IDLE with debugger enabled.

Collapse
nickytonline profile image
Nick Taylor (he/him) Author

Bobby Moynahan character from SNL saying awesome!