~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Misc/python.man

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-03-11 13:30:19 UTC
  • mto: (10.1.13 sid)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20100311133019-sblbooa3uqrkoe70
Tags: upstream-2.6.5~rc2
ImportĀ upstreamĀ versionĀ 2.6.5~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH PYTHON "1" "$Date: 2009-09-12 22:21:55 -0400 (Sat, 12 Sep 2009) $"
 
1
.TH PYTHON "1" "$Date: 2010-01-31 11:09:16 -0500 (Sun, 31 Jan 2010) $"
2
2
 
3
3
.\" To view this file while editing, run it through groff:
4
4
.\"   groff -Tascii -man python.man | less
8
8
.SH SYNOPSIS
9
9
.B python
10
10
[
 
11
.B \-B
 
12
]
 
13
[
11
14
.B \-d
12
15
]
13
16
[
23
26
.B \-m 
24
27
.I module-name
25
28
]
26
 
[
27
 
.B \-O
28
 
]
29
29
.br
30
30
       [
 
31
.B \-O
 
32
]
 
33
[
 
34
.B \-O0
 
35
]
 
36
[
31
37
.B -Q
32
38
.I argument
33
39
]
34
40
[
 
41
.B \-s
 
42
]
 
43
[
35
44
.B \-S
36
45
]
37
46
[
57
66
[
58
67
.B \-3
59
68
]
 
69
[
 
70
.B \-?
 
71
]
60
72
.br
61
73
       [
62
74
.B \-c
95
107
program.  
96
108
.SH COMMAND LINE OPTIONS
97
109
.TP
 
110
.B \-B
 
111
Don't write
 
112
.I .py[co]
 
113
files on import. See also PYTHONDONTWRITEBYTECODE.
 
114
.TP
98
115
.BI "\-c " command
99
116
Specify the command to execute (see next section).
100
117
This terminates the option list (following options are passed as
108
125
Ignore environment variables like PYTHONPATH and PYTHONHOME that modify
109
126
the behavior of the interpreter.
110
127
.TP
111
 
.B \-h
 
128
.B \-h ", " \-? ", "\-\-help
112
129
Prints the usage for the interpreter executable and exits.
113
130
.TP
114
131
.B \-i
131
148
.I .pyc
132
149
to \fI.pyo\fP.  Given twice, causes docstrings to be discarded.
133
150
.TP
 
151
.B \-O0
 
152
Discard docstrings in addition to the \fB-O\fP optimizations.
 
153
.TP
134
154
.BI "\-Q " argument
135
155
Division control; see PEP 238.  The argument must be one of "old" (the
136
156
default, int/int and long/long return an int or long), "new" (new
140
160
all use of the division operator).  For a use of "warnall", see the
141
161
Tools/scripts/fixdiv.py script.
142
162
.TP
 
163
.B \-s
 
164
Don't add user site directory to sys.path.
 
165
.TP
143
166
.B \-S
144
167
Disable the import of the module
145
168
.I site
167
190
searching for a module.  Also provides information on module cleanup
168
191
at exit.
169
192
.TP
170
 
.B \-V
 
193
.B \-V ", " \-\-version
171
194
Prints the Python version number of the executable and exits.
172
195
.TP
173
196
.BI "\-W " argument
204
227
messages if a warning is triggered repeatedly for the same source
205
228
line, such as inside a loop);
206
229
.B module
207
 
to print each warning only only the first time it occurs in each
 
230
to print each warning only the first time it occurs in each
208
231
module;
209
232
.B once
210
233
to print each warning only the first time it occurs in the program; or
370
393
If this is set to a non-empty string it is equivalent to specifying
371
394
the \fB\-d\fP option. If set to an integer, it is equivalent to
372
395
specifying \fB\-d\fP multiple times.
 
396
.IP PYTHONDONTWRITEBYTECODE
 
397
If this is set to a non-empty string it is equivalent to specifying
 
398
the \fB\-B\fP option (don't try to write
 
399
.I .py[co]
 
400
files).
373
401
.IP PYTHONINSPECT
374
402
If this is set to a non-empty string it is equivalent to specifying
375
403
the \fB\-i\fP option.
 
404
.IP PYTHONNOUSERSITE
 
405
If this is set to a non-empty string it is equivalent to specifying
 
406
the \fB\-s\fP option (Don't add the user site directory to sys.path).
376
407
.IP PYTHONUNBUFFERED
377
408
If this is set to a non-empty string it is equivalent to specifying
378
409
the \fB\-u\fP option.