All apps/Python

Python

python

The Python interpreter: run a script, a module or a one-line command.

Runs as python|macOS, Linux, Windows|www.python.org

Autocomplete

Fig spec, with what the manifest adds · 22 options
Published once and never changed; check the digest before caching
sha256
19dfe486dbe1b38cfa17e0a57fb7393c1a78a20b23bfae66387fa188eda9404f
Size
4725 bytes
OptionsOn python itself
-c
Execute the Python code in command. command can be one or more statements separated by newlines, with significant leading whitespace as in normal module code <command>
-m
Module <python module>
-?-h--help
Print a short description of all command line options
-V--version
Print the Python version number and exit
-b
Issue a warning when comparing bytes or bytearray with str or bytes with int. Issue an error when the option is given twice (-bb)
-B
If given, Python won’t try to write .pyc files on the import of source modules
--check-hash-based-pycs
Control the validation behavior of hash-based .pyc files. See Cached bytecode invalidation <value>
-d
Turn on parser debugging output (for expert only, depending on compilation options)
-E
Ignore all PYTHON* environment variables, e.g. PYTHONPATH and PYTHONHOME, that might be set
-i
When a script is passed as first argument or the -c option is used, enter interactive mode after executing the script or the command, even when sys.stdin does not appear to be a terminal
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode sys.path contains neither the script’s directory nor the user’s site-packages directory
-O
Remove assert statements and any code conditional on the value of __debug__
-OO
Do -O and also discard docstrings
-g
Don’t display the copyright and version messages even in interactive mode
-R
Turn on hash randomization. This option only has an effect if the PYTHONHASHSEED environment variable is set to 0, since hash randomization is enabled by default
-s
Don’t add the user site-packages directory to sys.path
-S
Disable the import of the module site and the site-dependent manipulations of sys.path that it entails
-u
Force the stdout and stderr streams to be unbuffered. This option has no effect on the stdin stream
-v
Print a message each time a module is initialized, showing the place (filename or built-in module) from which it is loaded
-W
Warning control. Python’s warning machinery by default prints warning messages to sys.stderr <value>
-x
Skip the first line of the source, allowing use of non-Unix forms of #!cmd. This is intended for a DOS specific hack only
-X
Reserved for various implementation-specific options <value>
ArgumentsPositional, in order
<python script>
· filepaths