Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

Side by Side Diff: Misc/python.man

Issue 15550: Trailing white spaces
Patch Set: Created 7 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Misc/Porting ('k') | Misc/python.pc.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .TH PYTHON "1" "$Date$" 1 .TH PYTHON "1" "$Date$"
2 2
3 .\" To view this file while editing, run it through groff: 3 .\" To view this file while editing, run it through groff:
4 .\" groff -Tascii -man python.man | less 4 .\" groff -Tascii -man python.man | less
5 5
6 .SH NAME 6 .SH NAME
7 python \- an interpreted, interactive, object-oriented programming language 7 python \- an interpreted, interactive, object-oriented programming language
8 .SH SYNOPSIS 8 .SH SYNOPSIS
9 .B python 9 .B python
10 [ 10 [
11 .B \-B 11 .B \-B
12 ] 12 ]
13 [ 13 [
14 .B \-d 14 .B \-d
15 ] 15 ]
16 [ 16 [
17 .B \-E 17 .B \-E
18 ] 18 ]
19 [ 19 [
20 .B \-h 20 .B \-h
21 ] 21 ]
22 [ 22 [
23 .B \-i 23 .B \-i
24 ] 24 ]
25 [ 25 [
26 .B \-m 26 .B \-m
27 .I module-name 27 .I module-name
28 ] 28 ]
29 [ 29 [
30 .B \-q 30 .B \-q
31 ] 31 ]
32 .br 32 .br
33 [ 33 [
34 .B \-O 34 .B \-O
35 ] 35 ]
36 [ 36 [
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 .B "INTERNET RESOURCES" 87 .B "INTERNET RESOURCES"
88 below; they may be installed on your system as well.) 88 below; they may be installed on your system as well.)
89 .PP 89 .PP
90 Python's basic power can be extended with your own modules written in 90 Python's basic power can be extended with your own modules written in
91 C or C++. 91 C or C++.
92 On most systems such modules may be dynamically loaded. 92 On most systems such modules may be dynamically loaded.
93 Python is also adaptable as an extension language for existing 93 Python is also adaptable as an extension language for existing
94 applications. 94 applications.
95 See the internal documentation for hints. 95 See the internal documentation for hints.
96 .PP 96 .PP
97 Documentation for installed Python modules and packages can be 97 Documentation for installed Python modules and packages can be
98 viewed by running the 98 viewed by running the
99 .B pydoc 99 .B pydoc
100 program. 100 program.
101 .SH COMMAND LINE OPTIONS 101 .SH COMMAND LINE OPTIONS
102 .TP 102 .TP
103 .B \-B 103 .B \-B
104 Don't write 104 Don't write
105 .I .py[co] 105 .I .py[co]
106 files on import. See also PYTHONDONTWRITEBYTECODE. 106 files on import. See also PYTHONDONTWRITEBYTECODE.
107 .TP 107 .TP
108 .BI "\-c " command 108 .BI "\-c " command
109 Specify the command to execute (see next section). 109 Specify the command to execute (see next section).
110 This terminates the option list (following options are passed as 110 This terminates the option list (following options are passed as
(...skipping 11 matching lines...) Expand all
122 Prints the usage for the interpreter executable and exits. 122 Prints the usage for the interpreter executable and exits.
123 .TP 123 .TP
124 .B \-i 124 .B \-i
125 When a script is passed as first argument or the \fB\-c\fP option is 125 When a script is passed as first argument or the \fB\-c\fP option is
126 used, enter interactive mode after executing the script or the 126 used, enter interactive mode after executing the script or the
127 command. It does not read the $PYTHONSTARTUP file. This can be 127 command. It does not read the $PYTHONSTARTUP file. This can be
128 useful to inspect global variables or a stack trace when a script 128 useful to inspect global variables or a stack trace when a script
129 raises an exception. 129 raises an exception.
130 .TP 130 .TP
131 .BI "\-m " module-name 131 .BI "\-m " module-name
132 Searches 132 Searches
133 .I sys.path 133 .I sys.path
134 for the named module and runs the corresponding 134 for the named module and runs the corresponding
135 .I .py 135 .I .py
136 file as a script. 136 file as a script.
137 .TP 137 .TP
138 .B \-O 138 .B \-O
139 Turn on basic optimizations. This changes the filename extension for 139 Turn on basic optimizations. This changes the filename extension for
140 compiled (bytecode) files from 140 compiled (bytecode) files from
141 .I .pyc 141 .I .pyc
142 to \fI.pyo\fP. Given twice, causes docstrings to be discarded. 142 to \fI.pyo\fP. Given twice, causes docstrings to be discarded.
143 .TP 143 .TP
144 .B \-OO 144 .B \-OO
145 Discard docstrings in addition to the \fB-O\fP optimizations. 145 Discard docstrings in addition to the \fB-O\fP optimizations.
146 .TP 146 .TP
147 .B \-q 147 .B \-q
148 Do not print the version and copyright messages. These messages are 148 Do not print the version and copyright messages. These messages are
149 also suppressed in non-interactive mode. 149 also suppressed in non-interactive mode.
150 .TP 150 .TP
151 .B \-s 151 .B \-s
152 Don't add user site directory to sys.path. 152 Don't add user site directory to sys.path.
153 .TP 153 .TP
154 .B \-S 154 .B \-S
155 Disable the import of the module 155 Disable the import of the module
156 .I site 156 .I site
157 and the site-dependent manipulations of 157 and the site-dependent manipulations of
158 .I sys.path 158 .I sys.path
159 that it entails. Also disable these manipulations if 159 that it entails. Also disable these manipulations if
160 .I site 160 .I site
161 is explicitly imported later. 161 is explicitly imported later.
162 .TP 162 .TP
163 .B \-u 163 .B \-u
164 Force the binary I/O layers of stdin, stdout and stderr to be unbuffered. 164 Force the binary I/O layers of stdin, stdout and stderr to be unbuffered.
165 The text I/O layer will still be line-buffered. 165 The text I/O layer will still be line-buffered.
166 .\" Note that there is internal buffering in readlines() and 166 .\" Note that there is internal buffering in readlines() and
167 .\" file-object iterators ("for line in sys.stdin") which is not 167 .\" file-object iterators ("for line in sys.stdin") which is not
168 .\" influenced by this option. To work around this, you will want to use 168 .\" influenced by this option. To work around this, you will want to use
169 .\" "sys.stdin.readline()" inside a "while 1:" loop. 169 .\" "sys.stdin.readline()" inside a "while 1:" loop.
170 .TP 170 .TP
171 .B \-v 171 .B \-v
172 Print a message each time a module is initialized, showing the place 172 Print a message each time a module is initialized, showing the place
173 (filename or built-in module) from which it is loaded. When given 173 (filename or built-in module) from which it is loaded. When given
174 twice, print a message for each file that is checked for when 174 twice, print a message for each file that is checked for when
175 searching for a module. Also provides information on module cleanup 175 searching for a module. Also provides information on module cleanup
176 at exit. 176 at exit.
177 .TP 177 .TP
178 .B \-V ", " \-\-version 178 .B \-V ", " \-\-version
179 Prints the Python version number of the executable and exits. 179 Prints the Python version number of the executable and exits.
180 .TP 180 .TP
181 .BI "\-W " argument 181 .BI "\-W " argument
182 Warning control. Python sometimes prints warning message to 182 Warning control. Python sometimes prints warning message to
183 .IR sys.stderr . 183 .IR sys.stderr .
184 A typical warning message has the following form: 184 A typical warning message has the following form:
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 part is ignored; the handler will always be \'backslashreplace\'. 391 part is ignored; the handler will always be \'backslashreplace\'.
392 .IP PYTHONNOUSERSITE 392 .IP PYTHONNOUSERSITE
393 If this is set to a non-empty string it is equivalent to specifying the 393 If this is set to a non-empty string it is equivalent to specifying the
394 \fB\-s\fP option (Don't add the user site directory to sys.path). 394 \fB\-s\fP option (Don't add the user site directory to sys.path).
395 .IP PYTHONUNBUFFERED 395 .IP PYTHONUNBUFFERED
396 If this is set to a non-empty string it is equivalent to specifying 396 If this is set to a non-empty string it is equivalent to specifying
397 the \fB\-u\fP option. 397 the \fB\-u\fP option.
398 .IP PYTHONVERBOSE 398 .IP PYTHONVERBOSE
399 If this is set to a non-empty string it is equivalent to specifying 399 If this is set to a non-empty string it is equivalent to specifying
400 the \fB\-v\fP option. If set to an integer, it is equivalent to 400 the \fB\-v\fP option. If set to an integer, it is equivalent to
401 specifying \fB\-v\fP multiple times. 401 specifying \fB\-v\fP multiple times.
402 .IP PYTHONWARNINGS 402 .IP PYTHONWARNINGS
403 If this is set to a comma-separated string it is equivalent to 403 If this is set to a comma-separated string it is equivalent to
404 specifying the \fB\-W\fP option for each separate value. 404 specifying the \fB\-W\fP option for each separate value.
405 .IP PYTHONHASHSEED 405 .IP PYTHONHASHSEED
406 If this variable is set to "random", a random value is used to seed the hashes 406 If this variable is set to "random", a random value is used to seed the hashes
407 of str, bytes and datetime objects. 407 of str, bytes and datetime objects.
408 408
409 If PYTHONHASHSEED is set to an integer value, it is used as a fixed seed for 409 If PYTHONHASHSEED is set to an integer value, it is used as a fixed seed for
410 generating the hash() of the types covered by the hash randomization. Its 410 generating the hash() of the types covered by the hash randomization. Its
411 purpose is to allow repeatable hashing, such as for selftests for the 411 purpose is to allow repeatable hashing, such as for selftests for the
(...skipping 14 matching lines...) Expand all
426 Downloads: http://python.org/download/ 426 Downloads: http://python.org/download/
427 .br 427 .br
428 Module repository: http://pypi.python.org/ 428 Module repository: http://pypi.python.org/
429 .br 429 .br
430 Newsgroups: comp.lang.python, comp.lang.python.announce 430 Newsgroups: comp.lang.python, comp.lang.python.announce
431 .SH LICENSING 431 .SH LICENSING
432 Python is distributed under an Open Source license. See the file 432 Python is distributed under an Open Source license. See the file
433 "LICENSE" in the Python source distribution for information on terms & 433 "LICENSE" in the Python source distribution for information on terms &
434 conditions for accessing and otherwise using Python and for a 434 conditions for accessing and otherwise using Python and for a
435 DISCLAIMER OF ALL WARRANTIES. 435 DISCLAIMER OF ALL WARRANTIES.
OLDNEW
« no previous file with comments | « Misc/Porting ('k') | Misc/python.pc.in » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+