Guido van Rossum | 97bac53 | 2001-09-05 18:57:51 +0000 | [diff] [blame] | 1 | .TH PYTHON "1" "$Date$" |
Andrew M. Kuchling | 3afe4f3 | 2004-10-07 12:30:54 +0000 | [diff] [blame] | 2 | |
Benjamin Peterson | 5f28b7b | 2009-03-26 21:49:58 +0000 | [diff] [blame] | 3 | .\" To view this file while editing, run it through groff: |
| 4 | .\" groff -Tascii -man python.man | less |
Andrew M. Kuchling | 3afe4f3 | 2004-10-07 12:30:54 +0000 | [diff] [blame] | 5 | |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 6 | .SH NAME |
| 7 | python \- an interpreted, interactive, object-oriented programming language |
| 8 | .SH SYNOPSIS |
| 9 | .B python |
| 10 | [ |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 11 | .B \-B |
| 12 | ] |
| 13 | [ |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 14 | .B \-d |
| 15 | ] |
| 16 | [ |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 17 | .B \-E |
| 18 | ] |
| 19 | [ |
| 20 | .B \-h |
| 21 | ] |
| 22 | [ |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 23 | .B \-i |
| 24 | ] |
| 25 | [ |
Andrew M. Kuchling | 166e625 | 2004-10-07 12:04:50 +0000 | [diff] [blame] | 26 | .B \-m |
| 27 | .I module-name |
| 28 | ] |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 29 | .br |
| 30 | [ |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 31 | .B \-O |
| 32 | ] |
| 33 | [ |
| 34 | .B \-O0 |
| 35 | ] |
| 36 | [ |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 37 | .B -Q |
| 38 | .I argument |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 39 | ] |
| 40 | [ |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 41 | .B \-s |
| 42 | ] |
| 43 | [ |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 44 | .B \-S |
Neil Schemenauer | 7d4bb9f | 2001-07-23 16:30:27 +0000 | [diff] [blame] | 45 | ] |
| 46 | [ |
Guido van Rossum | ef5bca3 | 1994-05-03 14:15:32 +0000 | [diff] [blame] | 47 | .B \-u |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 48 | ] |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 49 | .br |
| 50 | [ |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 51 | .B \-v |
| 52 | ] |
Guido van Rossum | 07c44c7 | 1998-04-10 19:46:00 +0000 | [diff] [blame] | 53 | [ |
Barry Warsaw | 6456937 | 2000-09-15 18:39:09 +0000 | [diff] [blame] | 54 | .B \-V |
| 55 | ] |
Guido van Rossum | 1378c32 | 2000-12-19 03:21:54 +0000 | [diff] [blame] | 56 | [ |
| 57 | .B \-W |
| 58 | .I argument |
| 59 | ] |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 60 | [ |
| 61 | .B \-x |
| 62 | ] |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 63 | [ |
| 64 | .B \-? |
| 65 | ] |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 66 | .br |
| 67 | [ |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 68 | .B \-c |
| 69 | .I command |
| 70 | | |
| 71 | .I script |
| 72 | | |
| 73 | \- |
| 74 | ] |
| 75 | [ |
| 76 | .I arguments |
| 77 | ] |
| 78 | .SH DESCRIPTION |
| 79 | Python is an interpreted, interactive, object-oriented programming |
| 80 | language that combines remarkable power with very clear syntax. |
| 81 | For an introduction to programming in Python you are referred to the |
| 82 | Python Tutorial. |
| 83 | The Python Library Reference documents built-in and standard types, |
| 84 | constants, functions and modules. |
| 85 | Finally, the Python Reference Manual describes the syntax and |
| 86 | semantics of the core language in (perhaps too) much detail. |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 87 | (These documents may be located via the |
| 88 | .B "INTERNET RESOURCES" |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 89 | below; they may be installed on your system as well.) |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 90 | .PP |
| 91 | Python's basic power can be extended with your own modules written in |
| 92 | C or C++. |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 93 | On most systems such modules may be dynamically loaded. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 94 | Python is also adaptable as an extension language for existing |
| 95 | applications. |
| 96 | See the internal documentation for hints. |
Andrew M. Kuchling | 88717f4 | 2001-04-05 14:50:40 +0000 | [diff] [blame] | 97 | .PP |
| 98 | Documentation for installed Python modules and packages can be |
| 99 | viewed by running the |
| 100 | .B pydoc |
| 101 | program. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 102 | .SH COMMAND LINE OPTIONS |
| 103 | .TP |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 104 | .B \-B |
| 105 | Don't write |
| 106 | .I .py[co] |
| 107 | files on import. See also PYTHONDONTWRITEBYTECODE. |
| 108 | .TP |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 109 | .BI "\-c " command |
| 110 | Specify the command to execute (see next section). |
| 111 | This terminates the option list (following options are passed as |
| 112 | arguments to the command). |
| 113 | .TP |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 114 | .B \-d |
| 115 | Turn on parser debugging output (for wizards only, depending on |
| 116 | compilation options). |
Guido van Rossum | 9f65ae0 | 1994-02-23 09:10:27 +0000 | [diff] [blame] | 117 | .TP |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 118 | .B \-E |
| 119 | Ignore environment variables like PYTHONPATH and PYTHONHOME that modify |
| 120 | the behavior of the interpreter. |
| 121 | .TP |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 122 | .B \-h ", " \-? ", "\-\-help |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 123 | Prints the usage for the interpreter executable and exits. |
| 124 | .TP |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 125 | .B \-i |
| 126 | When a script is passed as first argument or the \fB\-c\fP option is |
| 127 | used, enter interactive mode after executing the script or the |
Guido van Rossum | 9f65ae0 | 1994-02-23 09:10:27 +0000 | [diff] [blame] | 128 | command. It does not read the $PYTHONSTARTUP file. This can be |
| 129 | useful to inspect global variables or a stack trace when a script |
| 130 | raises an exception. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 131 | .TP |
Andrew M. Kuchling | 166e625 | 2004-10-07 12:04:50 +0000 | [diff] [blame] | 132 | .BI "\-m " module-name |
| 133 | Searches |
| 134 | .I sys.path |
| 135 | for the named module and runs the corresponding |
| 136 | .I .py |
| 137 | file as a script. |
| 138 | .TP |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 139 | .B \-O |
| 140 | Turn on basic optimizations. This changes the filename extension for |
| 141 | compiled (bytecode) files from |
| 142 | .I .pyc |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 143 | to \fI.pyo\fP. Given twice, causes docstrings to be discarded. |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 144 | .TP |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 145 | .B \-O0 |
| 146 | Discard docstrings in addition to the \fB-O\fP optimizations. |
| 147 | .TP |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 148 | .BI "\-Q " argument |
| 149 | Division control; see PEP 238. The argument must be one of "old" (the |
| 150 | default, int/int and long/long return an int or long), "new" (new |
| 151 | division semantics, i.e. int/int and long/long returns a float), |
| 152 | "warn" (old division semantics with a warning for int/int and |
| 153 | long/long), or "warnall" (old division semantics with a warning for |
| 154 | all use of the division operator). For a use of "warnall", see the |
| 155 | Tools/scripts/fixdiv.py script. |
| 156 | .TP |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 157 | .B \-s |
| 158 | Don't add user site directory to sys.path. |
| 159 | .TP |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 160 | .B \-S |
| 161 | Disable the import of the module |
| 162 | .I site |
| 163 | and the site-dependent manipulations of |
| 164 | .I sys.path |
| 165 | that it entails. |
| 166 | .TP |
Guido van Rossum | ef5bca3 | 1994-05-03 14:15:32 +0000 | [diff] [blame] | 167 | .B \-u |
Georg Brandl | 379299c | 2010-04-02 08:47:07 +0000 | [diff] [blame] | 168 | Force the binary I/O layers of stdin, stdout and stderr to be unbuffered. |
| 169 | The text I/O layer will still be line-buffered. |
| 170 | .\" Note that there is internal buffering in readlines() and |
| 171 | .\" file-object iterators ("for line in sys.stdin") which is not |
| 172 | .\" influenced by this option. To work around this, you will want to use |
| 173 | .\" "sys.stdin.readline()" inside a "while 1:" loop. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 174 | .TP |
| 175 | .B \-v |
| 176 | Print a message each time a module is initialized, showing the place |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 177 | (filename or built-in module) from which it is loaded. When given |
| 178 | twice, print a message for each file that is checked for when |
| 179 | searching for a module. Also provides information on module cleanup |
| 180 | at exit. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 181 | .TP |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 182 | .B \-V ", " \-\-version |
Barry Warsaw | 6456937 | 2000-09-15 18:39:09 +0000 | [diff] [blame] | 183 | Prints the Python version number of the executable and exits. |
| 184 | .TP |
Guido van Rossum | 1378c32 | 2000-12-19 03:21:54 +0000 | [diff] [blame] | 185 | .BI "\-W " argument |
| 186 | Warning control. Python sometimes prints warning message to |
| 187 | .IR sys.stderr . |
| 188 | A typical warning message has the following form: |
| 189 | .IB file ":" line ": " category ": " message. |
| 190 | By default, each warning is printed once for each source line where it |
| 191 | occurs. This option controls how often warnings are printed. |
| 192 | Multiple |
| 193 | .B \-W |
| 194 | options may be given; when a warning matches more than one |
| 195 | option, the action for the last matching option is performed. |
| 196 | Invalid |
| 197 | .B \-W |
| 198 | options are ignored (a warning message is printed about invalid |
| 199 | options when the first warning is issued). Warnings can also be |
| 200 | controlled from within a Python program using the |
| 201 | .I warnings |
| 202 | module. |
| 203 | |
| 204 | The simplest form of |
| 205 | .I argument |
| 206 | is one of the following |
| 207 | .I action |
| 208 | strings (or a unique abbreviation): |
| 209 | .B ignore |
| 210 | to ignore all warnings; |
| 211 | .B default |
| 212 | to explicitly request the default behavior (printing each warning once |
| 213 | per source line); |
| 214 | .B all |
| 215 | to print a warning each time it occurs (this may generate many |
| 216 | messages if a warning is triggered repeatedly for the same source |
Fred Drake | bd2e3b0 | 2001-07-26 21:25:58 +0000 | [diff] [blame] | 217 | line, such as inside a loop); |
Guido van Rossum | 1378c32 | 2000-12-19 03:21:54 +0000 | [diff] [blame] | 218 | .B module |
Georg Brandl | eeb575f | 2009-06-24 06:42:05 +0000 | [diff] [blame] | 219 | to print each warning only the first time it occurs in each |
Guido van Rossum | 1378c32 | 2000-12-19 03:21:54 +0000 | [diff] [blame] | 220 | module; |
| 221 | .B once |
| 222 | to print each warning only the first time it occurs in the program; or |
| 223 | .B error |
| 224 | to raise an exception instead of printing a warning message. |
| 225 | |
| 226 | The full form of |
| 227 | .I argument |
| 228 | is |
| 229 | .IB action : message : category : module : line. |
| 230 | Here, |
| 231 | .I action |
| 232 | is as explained above but only applies to messages that match the |
| 233 | remaining fields. Empty fields match all values; trailing empty |
| 234 | fields may be omitted. The |
| 235 | .I message |
| 236 | field matches the start of the warning message printed; this match is |
| 237 | case-insensitive. The |
| 238 | .I category |
| 239 | field matches the warning category. This must be a class name; the |
| 240 | match test whether the actual warning category of the message is a |
| 241 | subclass of the specified warning category. The full class name must |
| 242 | be given. The |
| 243 | .I module |
| 244 | field matches the (fully-qualified) module name; this match is |
| 245 | case-sensitive. The |
| 246 | .I line |
| 247 | field matches the line number, where zero matches all line numbers and |
| 248 | is thus equivalent to an omitted line number. |
| 249 | .TP |
Guido van Rossum | b674baf | 2001-09-05 18:55:34 +0000 | [diff] [blame] | 250 | .B \-x |
| 251 | Skip the first line of the source. This is intended for a DOS |
| 252 | specific hack only. Warning: the line numbers in error messages will |
| 253 | be off by one! |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 254 | .SH INTERPRETER INTERFACE |
| 255 | The interpreter interface resembles that of the UNIX shell: when |
| 256 | called with standard input connected to a tty device, it prompts for |
| 257 | commands and executes them until an EOF is read; when called with a |
| 258 | file name argument or with a file as standard input, it reads and |
| 259 | executes a |
| 260 | .I script |
| 261 | from that file; |
| 262 | when called with |
| 263 | .B \-c |
| 264 | .I command, |
| 265 | it executes the Python statement(s) given as |
| 266 | .I command. |
| 267 | Here |
| 268 | .I command |
| 269 | may contain multiple statements separated by newlines. |
| 270 | Leading whitespace is significant in Python statements! |
Matthias Klose | 31a58df | 2005-03-20 14:16:03 +0000 | [diff] [blame] | 271 | In non-interactive mode, the entire input is parsed before it is |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 272 | executed. |
| 273 | .PP |
| 274 | If available, the script name and additional arguments thereafter are |
| 275 | passed to the script in the Python variable |
| 276 | .I sys.argv , |
| 277 | which is a list of strings (you must first |
| 278 | .I import sys |
| 279 | to be able to access it). |
| 280 | If no script name is given, |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 281 | .I sys.argv[0] |
| 282 | is an empty string; if |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 283 | .B \-c |
| 284 | is used, |
| 285 | .I sys.argv[0] |
| 286 | contains the string |
| 287 | .I '-c'. |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 288 | Note that options interpreted by the Python interpreter itself |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 289 | are not placed in |
| 290 | .I sys.argv. |
| 291 | .PP |
| 292 | In interactive mode, the primary prompt is `>>>'; the second prompt |
| 293 | (which appears when a command is not complete) is `...'. |
| 294 | The prompts can be changed by assignment to |
| 295 | .I sys.ps1 |
| 296 | or |
| 297 | .I sys.ps2. |
| 298 | The interpreter quits when it reads an EOF at a prompt. |
| 299 | When an unhandled exception occurs, a stack trace is printed and |
| 300 | control returns to the primary prompt; in non-interactive mode, the |
| 301 | interpreter exits after printing the stack trace. |
| 302 | The interrupt signal raises the |
| 303 | .I Keyboard\%Interrupt |
| 304 | exception; other UNIX signals are not caught (except that SIGPIPE is |
| 305 | sometimes ignored, in favor of the |
| 306 | .I IOError |
| 307 | exception). Error messages are written to stderr. |
| 308 | .SH FILES AND DIRECTORIES |
| 309 | These are subject to difference depending on local installation |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 310 | conventions; ${prefix} and ${exec_prefix} are installation-dependent |
| 311 | and should be interpreted as for GNU software; they may be the same. |
| 312 | The default for both is \fI/usr/local\fP. |
| 313 | .IP \fI${exec_prefix}/bin/python\fP |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 314 | Recommended location of the interpreter. |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 315 | .PP |
| 316 | .I ${prefix}/lib/python<version> |
| 317 | .br |
| 318 | .I ${exec_prefix}/lib/python<version> |
| 319 | .RS |
| 320 | Recommended locations of the directories containing the standard |
| 321 | modules. |
| 322 | .RE |
| 323 | .PP |
| 324 | .I ${prefix}/include/python<version> |
| 325 | .br |
| 326 | .I ${exec_prefix}/include/python<version> |
| 327 | .RS |
| 328 | Recommended locations of the directories containing the include files |
| 329 | needed for developing Python extensions and embedding the |
| 330 | interpreter. |
| 331 | .RE |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 332 | .SH ENVIRONMENT VARIABLES |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 333 | .IP PYTHONHOME |
| 334 | Change the location of the standard Python libraries. By default, the |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 335 | libraries are searched in ${prefix}/lib/python<version> and |
| 336 | ${exec_prefix}/lib/python<version>, where ${prefix} and ${exec_prefix} |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 337 | are installation-dependent directories, both defaulting to |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 338 | \fI/usr/local\fP. When $PYTHONHOME is set to a single directory, its value |
| 339 | replaces both ${prefix} and ${exec_prefix}. To specify different values |
| 340 | for these, set $PYTHONHOME to ${prefix}:${exec_prefix}. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 341 | .IP PYTHONPATH |
| 342 | Augments the default search path for module files. |
| 343 | The format is the same as the shell's $PATH: one or more directory |
| 344 | pathnames separated by colons. |
Matthias Klose | 31a58df | 2005-03-20 14:16:03 +0000 | [diff] [blame] | 345 | Non-existent directories are silently ignored. |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 346 | The default search path is installation dependent, but generally |
Fred Drake | 4c9be9d | 1999-08-20 13:10:20 +0000 | [diff] [blame] | 347 | begins with ${prefix}/lib/python<version> (see PYTHONHOME above). |
Guido van Rossum | 4cf4de5 | 1997-09-08 04:06:15 +0000 | [diff] [blame] | 348 | The default search path is always appended to $PYTHONPATH. |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 349 | If a script argument is given, the directory containing the script is |
| 350 | inserted in the path in front of $PYTHONPATH. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 351 | The search path can be manipulated from within a Python program as the |
| 352 | variable |
| 353 | .I sys.path . |
| 354 | .IP PYTHONSTARTUP |
| 355 | If this is the name of a readable file, the Python commands in that |
| 356 | file are executed before the first prompt is displayed in interactive |
| 357 | mode. |
| 358 | The file is executed in the same name space where interactive commands |
| 359 | are executed so that objects defined or imported in it can be used |
| 360 | without qualification in the interactive session. |
| 361 | You can also change the prompts |
| 362 | .I sys.ps1 |
| 363 | and |
| 364 | .I sys.ps2 |
| 365 | in this file. |
Fred Drake | bd2e3b0 | 2001-07-26 21:25:58 +0000 | [diff] [blame] | 366 | .IP PYTHONY2K |
| 367 | Set this to a non-empty string to cause the \fItime\fP module to |
| 368 | require dates specified as strings to include 4-digit years, otherwise |
| 369 | 2-digit years are converted based on rules described in the \fItime\fP |
Andrew M. Kuchling | b2cb37f | 2002-05-09 14:33:18 +0000 | [diff] [blame] | 370 | module documentation. |
Guido van Rossum | 9abaf4d | 2001-10-12 22:17:56 +0000 | [diff] [blame] | 371 | .IP PYTHONOPTIMIZE |
| 372 | If this is set to a non-empty string it is equivalent to specifying |
| 373 | the \fB\-O\fP option. If set to an integer, it is equivalent to |
| 374 | specifying \fB\-O\fP multiple times. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 375 | .IP PYTHONDEBUG |
| 376 | If this is set to a non-empty string it is equivalent to specifying |
Guido van Rossum | 9abaf4d | 2001-10-12 22:17:56 +0000 | [diff] [blame] | 377 | the \fB\-d\fP option. If set to an integer, it is equivalent to |
| 378 | specifying \fB\-d\fP multiple times. |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 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). |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 384 | .IP PYTHONINSPECT |
| 385 | If this is set to a non-empty string it is equivalent to specifying |
| 386 | the \fB\-i\fP option. |
Matthias Klose | c8b16f8 | 2010-01-31 16:14:37 +0000 | [diff] [blame] | 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). |
Guido van Rossum | ef5bca3 | 1994-05-03 14:15:32 +0000 | [diff] [blame] | 390 | .IP PYTHONUNBUFFERED |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 391 | If this is set to a non-empty string it is equivalent to specifying |
Guido van Rossum | ef5bca3 | 1994-05-03 14:15:32 +0000 | [diff] [blame] | 392 | the \fB\-u\fP option. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 393 | .IP PYTHONVERBOSE |
| 394 | If this is set to a non-empty string it is equivalent to specifying |
Guido van Rossum | 9abaf4d | 2001-10-12 22:17:56 +0000 | [diff] [blame] | 395 | the \fB\-v\fP option. If set to an integer, it is equivalent to |
| 396 | specifying \fB\-v\fP multiple times. |
Philip Jenvey | 0805ca3 | 2010-04-07 04:04:10 +0000 | [diff] [blame^] | 397 | .IP PYTHONWARNINGS |
| 398 | If this is set to a comma-separated string it is equivalent to |
| 399 | specifying the \fB\-W\fP option for each separate value. |
Guido van Rossum | a7925f1 | 1994-01-26 10:20:16 +0000 | [diff] [blame] | 400 | .SH AUTHOR |
Andrew M. Kuchling | 6f59325 | 2004-10-07 12:27:31 +0000 | [diff] [blame] | 401 | The Python Software Foundation: http://www.python.org/psf |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 402 | .SH INTERNET RESOURCES |
Fred Drake | bd2e3b0 | 2001-07-26 21:25:58 +0000 | [diff] [blame] | 403 | Main website: http://www.python.org/ |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 404 | .br |
Benjamin Peterson | 6aa7c8c | 2009-09-13 02:23:12 +0000 | [diff] [blame] | 405 | Documentation: http://docs.python.org/py3k/ |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 406 | .br |
Andrew M. Kuchling | 895f245 | 2004-10-07 12:23:12 +0000 | [diff] [blame] | 407 | Developer resources: http://www.python.org/dev/ |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 408 | .br |
Benjamin Peterson | 25a8dd7 | 2009-09-13 02:22:00 +0000 | [diff] [blame] | 409 | Downloads: http://python.org/download/ |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 410 | .br |
Benjamin Peterson | 25a8dd7 | 2009-09-13 02:22:00 +0000 | [diff] [blame] | 411 | Module repository: http://pypi.python.org/ |
Guido van Rossum | 74faed2 | 1996-07-30 19:27:05 +0000 | [diff] [blame] | 412 | .br |
Fred Drake | bd2e3b0 | 2001-07-26 21:25:58 +0000 | [diff] [blame] | 413 | Newsgroups: comp.lang.python, comp.lang.python.announce |
Guido van Rossum | f4a090d | 2000-09-01 20:36:34 +0000 | [diff] [blame] | 414 | .SH LICENSING |
| 415 | Python is distributed under an Open Source license. See the file |
| 416 | "LICENSE" in the Python source distribution for information on terms & |
| 417 | conditions for accessing and otherwise using Python and for a |
| 418 | DISCLAIMER OF ALL WARRANTIES. |