About Lesson
Python Command line options
The following command will display the Python command-line options. /> python –help
Some of the Python command line options are as follows:
Command line options
Some of the command-line options are as follows:
Python command-line option | Option Description |
-d | This option turns on and provides the parser debugging output |
-S | This flag doesn’t imply ‘import site’ on initialization at startup |
-v | provides verbose output(detailed trace on import statements) |
-O | Generate optimized bytecode |
-X | disable class-based built-in exceptions; obsolete starting with version 1.6 |
-c cmd | run Python script sent in cmd string. The program passed in as a string |
file | program read from the script file. Run Python script from the given file |
Join the conversation