Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf4de5

Browse files
committed
Brought up to date with new options and env vars.
1 parent e8fd143 commit 4cf4de5

1 file changed

Lines changed: 44 additions & 7 deletions

File tree

Misc/python.man

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH PYTHON "30 July 1996"
1+
.TH PYTHON "7 September, 1997"
22
.SH NAME
33
python \- 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
5565
useful to inspect global variables or a stack trace when a script
5666
raises 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
6286
Print 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
6694
Specify the command to execute (see next section).
6795
This terminates the option list (following options are passed as
@@ -125,18 +153,25 @@ These are subject to difference depending on local installation
125153
conventions:
126154
.IP /usr/local/bin/python
127155
Recommended location of the interpreter.
128-
.IP /usr/local/lib/python1.4
156+
.IP /usr/local/lib/python<version>
129157
Recommended 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
132168
Augments the default search path for module files.
133169
The format is the same as the shell's $PATH: one or more directory
134170
pathnames separated by colons.
135171
Non-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.
140175
If a script argument is given, the directory containing the script is
141176
inserted in the path in front of $PYTHONPATH.
142177
The search path can be manipulated from within a Python program as the
@@ -182,6 +217,8 @@ USA
182217
.PP
183218
184219
.fi
220+
.PP
221+
And a cast of thousands.
185222
.SH INTERNET RESOURCES
186223
Web site: http://www.python.org
187224
.br

0 commit comments

Comments
 (0)