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

Skip to content

Commit c8b16f8

Browse files
committed
Merged revisions 77875 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r77875 | matthias.klose | 2010-01-31 17:05:13 +0100 (So, 31 Jan 2010) | 3 lines - Update python manual page (options -B, -O0, -s, environment variables PYTHONDONTWRITEBYTECODE, PYTHONNOUSERSITE). ........
1 parent ed68afa commit c8b16f8

2 files changed

Lines changed: 39 additions & 5 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ Documentation
693693

694694
- Issue #6556: Fixed the Distutils configuration files location explanation
695695
for Windows.
696+
697+
- Update python manual page (options -B, -O0, -s, environment variables
698+
PYTHONDONTWRITEBYTECODE, PYTHONNOUSERSITE).
696699

697700
Tests
698701
-----

Misc/python.man

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ python \- an interpreted, interactive, object-oriented programming language
88
.SH SYNOPSIS
99
.B python
1010
[
11+
.B \-B
12+
]
13+
[
1114
.B \-d
1215
]
1316
[
@@ -23,15 +26,21 @@ python \- an interpreted, interactive, object-oriented programming language
2326
.B \-m
2427
.I module-name
2528
]
26-
[
27-
.B \-O
28-
]
2929
.br
3030
[
31+
.B \-O
32+
]
33+
[
34+
.B \-O0
35+
]
36+
[
3137
.B -Q
3238
.I argument
3339
]
3440
[
41+
.B \-s
42+
]
43+
[
3544
.B \-S
3645
]
3746
[
@@ -51,6 +60,9 @@ python \- an interpreted, interactive, object-oriented programming language
5160
[
5261
.B \-x
5362
]
63+
[
64+
.B \-?
65+
]
5466
.br
5567
[
5668
.B \-c
@@ -89,6 +101,11 @@ viewed by running the
89101
program.
90102
.SH COMMAND LINE OPTIONS
91103
.TP
104+
.B \-B
105+
Don't write
106+
.I .py[co]
107+
files on import. See also PYTHONDONTWRITEBYTECODE.
108+
.TP
92109
.BI "\-c " command
93110
Specify the command to execute (see next section).
94111
This terminates the option list (following options are passed as
@@ -102,7 +119,7 @@ compilation options).
102119
Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
103120
the behavior of the interpreter.
104121
.TP
105-
.B \-h
122+
.B \-h ", " \-? ", "\-\-help
106123
Prints the usage for the interpreter executable and exits.
107124
.TP
108125
.B \-i
@@ -125,6 +142,9 @@ compiled (bytecode) files from
125142
.I .pyc
126143
to \fI.pyo\fP. Given twice, causes docstrings to be discarded.
127144
.TP
145+
.B \-O0
146+
Discard docstrings in addition to the \fB-O\fP optimizations.
147+
.TP
128148
.BI "\-Q " argument
129149
Division control; see PEP 238. The argument must be one of "old" (the
130150
default, int/int and long/long return an int or long), "new" (new
@@ -134,6 +154,9 @@ long/long), or "warnall" (old division semantics with a warning for
134154
all use of the division operator). For a use of "warnall", see the
135155
Tools/scripts/fixdiv.py script.
136156
.TP
157+
.B \-s
158+
Don't add user site directory to sys.path.
159+
.TP
137160
.B \-S
138161
Disable the import of the module
139162
.I site
@@ -156,7 +179,7 @@ twice, print a message for each file that is checked for when
156179
searching for a module. Also provides information on module cleanup
157180
at exit.
158181
.TP
159-
.B \-V
182+
.B \-V ", " \-\-version
160183
Prints the Python version number of the executable and exits.
161184
.TP
162185
.BI "\-W " argument
@@ -353,9 +376,17 @@ specifying \fB\-O\fP multiple times.
353376
If this is set to a non-empty string it is equivalent to specifying
354377
the \fB\-d\fP option. If set to an integer, it is equivalent to
355378
specifying \fB\-d\fP multiple times.
379+
.IP PYTHONDONTWRITEBYTECODE
380+
If this is set to a non-empty string it is equivalent to specifying
381+
the \fB\-B\fP option (don't try to write
382+
.I .py[co]
383+
files).
356384
.IP PYTHONINSPECT
357385
If this is set to a non-empty string it is equivalent to specifying
358386
the \fB\-i\fP option.
387+
.IP PYTHONNOUSERSITE
388+
If this is set to a non-empty string it is equivalent to specifying
389+
the \fB\-s\fP option (Don't add the user site directory to sys.path).
359390
.IP PYTHONUNBUFFERED
360391
If this is set to a non-empty string it is equivalent to specifying
361392
the \fB\-u\fP option.

0 commit comments

Comments
 (0)