1- .TH PYTHON "30 July 1996 "
1+ .TH PYTHON "7 September, 1997 "
22.SH NAME
33python \- an interpreted, interactive, object-oriented programming language
44.SH SYNOPSIS
@@ -10,12 +10,22 @@ python \- an interpreted, interactive, object-oriented programming language
1010.B \- i
1111]
1212[
13+ .B \- O
14+ ]
15+ [
16+ .B \- S
17+ ]
18+ [
1319.B \- u
1420]
1521[
1622.B \- v
1723]
1824[
25+ .B \- X
26+ ]
27+ .br
28+ [
1929.B \- c
2030.I command
2131|
@@ -55,13 +65,31 @@ command. It does not read the $PYTHONSTARTUP file. This can be
5565useful to inspect global variables or a stack trace when a script
5666raises an exception.
5767.TP
68+ .B \- O
69+ Turn on basic optimizations. This changes the filename extension for
70+ compiled (bytecode) files from
71+ .I .pyc
72+ to
73+ .I pyo.
74+ .TP
75+ .B \- S
76+ Disable the import of the module
77+ .I site
78+ and the site-dependent manipulations of
79+ .I sys.path
80+ that it entails.
81+ .TP
5882.B \- u
59- Force stdout and stderr to be totally unbuffered.
83+ Force stdin, stdout and stderr to be totally unbuffered.
6084.TP
6185.B \- v
6286Print a message each time a module is initialized, showing the place
6387(filename or built-in module) from which it is loaded.
6488.TP
89+ .B \- X
90+ Make the standard exceptions strings instead of classes.
91+ Use for backward compatibility with old code only.
92+ .TP
6593.BI " \- c " command
6694Specify the command to execute (see next section).
6795This terminates the option list (following options are passed as
@@ -125,18 +153,25 @@ These are subject to difference depending on local installation
125153conventions:
126154.IP /usr/local/bin/python
127155Recommended location of the interpreter.
128- .IP /usr/local/lib/python1.4
156+ .IP /usr/local/lib/python<version>
129157Recommended location of the directory containing the standard modules.
130158.SH ENVIRONMENT VARIABLES
159+ .IP PYTHONHOME
160+ Change the location of the standard Python libraries. By default, the
161+ libraries are searched in <prefix>/lib/python<version> and
162+ <exec_prefix>/lib/python<version>, where <prefix> and <exec_prefix>
163+ are installation-dependent directories, both defaulting to
164+ /usr/local. When $PYTHONHOME is set to a single directory, its value
165+ replaces both <prefix> and <exec_prefix>. To specify different values
166+ for these, set $PYTHONHOME to <prefix>:<exec_prefix>.
131167.IP PYTHONPATH
132168Augments the default search path for module files.
133169The format is the same as the shell's $PATH: one or more directory
134170pathnames separated by colons.
135171Non-existant directories are silently ignored.
136- The default search path is installation dependent, but always begins
137- with `.', (for example,
138- .I .:/usr/local/lib/python ).
139- The default search path is appended to $PYTHONPATH.
172+ The default search path is installation dependent, but generally
173+ begins with <prefix>/lib/python<version> (see PYTHONHOME below).
174+ The default search path is always appended to $PYTHONPATH.
140175If a script argument is given, the directory containing the script is
141176inserted in the path in front of $PYTHONPATH.
142177The search path can be manipulated from within a Python program as the
182217.PP
183218184219.fi
220+ .PP
221+ And a cast of thousands.
185222.SH INTERNET RESOURCES
186223Web site: http://www.python.org
187224.br
0 commit comments