mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Brought up to date with new options and env vars.
This commit is contained in:
parent
e8fd143b7e
commit
4cf4de5d11
1 changed files with 44 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
.TH PYTHON "30 July 1996"
|
.TH PYTHON "7 September, 1997"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
python \- an interpreted, interactive, object-oriented programming language
|
python \- an interpreted, interactive, object-oriented programming language
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
|
@ -10,12 +10,22 @@ python \- an interpreted, interactive, object-oriented programming language
|
||||||
.B \-i
|
.B \-i
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
|
.B \-O
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.B \-S
|
||||||
|
]
|
||||||
|
[
|
||||||
.B \-u
|
.B \-u
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
.B \-v
|
.B \-v
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
|
.B \-X
|
||||||
|
]
|
||||||
|
.br
|
||||||
|
[
|
||||||
.B \-c
|
.B \-c
|
||||||
.I command
|
.I command
|
||||||
|
|
|
|
||||||
|
|
@ -55,13 +65,31 @@ command. It does not read the $PYTHONSTARTUP file. This can be
|
||||||
useful to inspect global variables or a stack trace when a script
|
useful to inspect global variables or a stack trace when a script
|
||||||
raises an exception.
|
raises an exception.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-O
|
||||||
|
Turn on basic optimizations. This changes the filename extension for
|
||||||
|
compiled (bytecode) files from
|
||||||
|
.I .pyc
|
||||||
|
to
|
||||||
|
.I pyo.
|
||||||
|
.TP
|
||||||
|
.B \-S
|
||||||
|
Disable the import of the module
|
||||||
|
.I site
|
||||||
|
and the site-dependent manipulations of
|
||||||
|
.I sys.path
|
||||||
|
that it entails.
|
||||||
|
.TP
|
||||||
.B \-u
|
.B \-u
|
||||||
Force stdout and stderr to be totally unbuffered.
|
Force stdin, stdout and stderr to be totally unbuffered.
|
||||||
.TP
|
.TP
|
||||||
.B \-v
|
.B \-v
|
||||||
Print a message each time a module is initialized, showing the place
|
Print a message each time a module is initialized, showing the place
|
||||||
(filename or built-in module) from which it is loaded.
|
(filename or built-in module) from which it is loaded.
|
||||||
.TP
|
.TP
|
||||||
|
.B \-X
|
||||||
|
Make the standard exceptions strings instead of classes.
|
||||||
|
Use for backward compatibility with old code only.
|
||||||
|
.TP
|
||||||
.BI "\-c " command
|
.BI "\-c " command
|
||||||
Specify the command to execute (see next section).
|
Specify the command to execute (see next section).
|
||||||
This terminates the option list (following options are passed as
|
This terminates the option list (following options are passed as
|
||||||
|
|
@ -125,18 +153,25 @@ These are subject to difference depending on local installation
|
||||||
conventions:
|
conventions:
|
||||||
.IP /usr/local/bin/python
|
.IP /usr/local/bin/python
|
||||||
Recommended location of the interpreter.
|
Recommended location of the interpreter.
|
||||||
.IP /usr/local/lib/python1.4
|
.IP /usr/local/lib/python<version>
|
||||||
Recommended location of the directory containing the standard modules.
|
Recommended location of the directory containing the standard modules.
|
||||||
.SH ENVIRONMENT VARIABLES
|
.SH ENVIRONMENT VARIABLES
|
||||||
|
.IP PYTHONHOME
|
||||||
|
Change the location of the standard Python libraries. By default, the
|
||||||
|
libraries are searched in <prefix>/lib/python<version> and
|
||||||
|
<exec_prefix>/lib/python<version>, where <prefix> and <exec_prefix>
|
||||||
|
are installation-dependent directories, both defaulting to
|
||||||
|
/usr/local. When $PYTHONHOME is set to a single directory, its value
|
||||||
|
replaces both <prefix> and <exec_prefix>. To specify different values
|
||||||
|
for these, set $PYTHONHOME to <prefix>:<exec_prefix>.
|
||||||
.IP PYTHONPATH
|
.IP PYTHONPATH
|
||||||
Augments the default search path for module files.
|
Augments the default search path for module files.
|
||||||
The format is the same as the shell's $PATH: one or more directory
|
The format is the same as the shell's $PATH: one or more directory
|
||||||
pathnames separated by colons.
|
pathnames separated by colons.
|
||||||
Non-existant directories are silently ignored.
|
Non-existant directories are silently ignored.
|
||||||
The default search path is installation dependent, but always begins
|
The default search path is installation dependent, but generally
|
||||||
with `.', (for example,
|
begins with <prefix>/lib/python<version> (see PYTHONHOME below).
|
||||||
.I .:/usr/local/lib/python ).
|
The default search path is always appended to $PYTHONPATH.
|
||||||
The default search path is appended to $PYTHONPATH.
|
|
||||||
If a script argument is given, the directory containing the script is
|
If a script argument is given, the directory containing the script is
|
||||||
inserted in the path in front of $PYTHONPATH.
|
inserted in the path in front of $PYTHONPATH.
|
||||||
The search path can be manipulated from within a Python program as the
|
The search path can be manipulated from within a Python program as the
|
||||||
|
|
@ -182,6 +217,8 @@ USA
|
||||||
.PP
|
.PP
|
||||||
E-mail: guido@cnri.reston.va.us, guido@python.org
|
E-mail: guido@cnri.reston.va.us, guido@python.org
|
||||||
.fi
|
.fi
|
||||||
|
.PP
|
||||||
|
And a cast of thousands.
|
||||||
.SH INTERNET RESOURCES
|
.SH INTERNET RESOURCES
|
||||||
Web site: http://www.python.org
|
Web site: http://www.python.org
|
||||||
.br
|
.br
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue