.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.49.3.
.TH PYTHON "1" "October 2025" "Python 3.13.8" "User Commands"
.SH NAME
Python \- manual page for Python 3.13.8
.SH DESCRIPTION
usage: python [option] ... [\-c cmd | \fB\-m\fR mod | file | \fB\-]\fR [arg] ...
Options (and corresponding environment variables):
\fB\-b\fR     : issue warnings about converting bytes/bytearray to str and comparing
.IP
bytes/bytearray with str or bytes with int. (\fB\-bb\fR: issue errors)
.PP
\fB\-B\fR     : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x
\fB\-c\fR cmd : program passed in as string (terminates option list)
\fB\-d\fR     : turn on parser debugging output (for experts only, only works on
.IP
debug builds); also PYTHONDEBUG=x
.PP
\fB\-E\fR     : ignore PYTHON* environment variables (such as PYTHONPATH)
\fB\-h\fR     : print this help message and exit (also \-? or \fB\-\-help\fR)
\fB\-i\fR     : inspect interactively after running script; forces a prompt even
.IP
if stdin does not appear to be a terminal; also PYTHONINSPECT=x
.PP
\fB\-I\fR     : isolate Python from the user's environment (implies \fB\-E\fR, \fB\-P\fR and \fB\-s\fR)
\fB\-m\fR mod : run library module as a script (terminates option list)
\fB\-O\fR     : remove assert and __debug__\-dependent statements; add .opt\-1 before
.IP
\&.pyc extension; also PYTHONOPTIMIZE=x
.PP
\fB\-OO\fR    : do \fB\-O\fR changes and also discard docstrings; add .opt\-2 before
.IP
\&.pyc extension
.PP
\fB\-P\fR     : don't prepend a potentially unsafe path to sys.path; also
.IP
PYTHONSAFEPATH
.PP
\fB\-q\fR     : don't print version and copyright messages on interactive startup
\fB\-s\fR     : don't add user site directory to sys.path; also PYTHONNOUSERSITE=x
\fB\-S\fR     : don't imply 'import site' on initialization
\fB\-u\fR     : force the stdout and stderr streams to be unbuffered;
.IP
this option has no effect on stdin; also PYTHONUNBUFFERED=x
.PP
\fB\-v\fR     : verbose (trace import statements); also PYTHONVERBOSE=x
.IP
can be supplied multiple times to increase verbosity
.PP
\fB\-V\fR     : print the Python version number and exit (also \fB\-\-version\fR)
.IP
when given twice, print more information about the build
.PP
\fB\-W\fR arg : warning control; arg is action:message:category:module:lineno
.IP
also PYTHONWARNINGS=arg
.PP
\fB\-x\fR     : skip first line of source, allowing use of non\-Unix forms of #!cmd
\fB\-X\fR opt : set implementation\-specific option
\fB\-\-check\-hash\-based\-pycs\fR always|default|never:
.IP
control how Python invalidates hash\-based .pyc files
.PP
\fB\-\-help\-env\fR: print help about Python environment variables and exit
\fB\-\-help\-xoptions\fR: print help about implementation\-specific \fB\-X\fR options and exit
\fB\-\-help\-all\fR: print complete help information and exit
.PP
Arguments:
file   : program read from script file
\-      : program read from stdin (default; interactive mode if a tty)
arg ...: arguments passed to program in sys.argv[1:]
.SH "SEE ALSO"
The full documentation for
.B Python
is maintained as a Texinfo manual.  If the
.B info
and
.B Python
programs are properly installed at your site, the command
.IP
.B info Python
.PP
should give you access to the complete manual.
