mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Add -3 option to the interpreter to warn about features that are
deprecated and will be changed/removed in Python 3.0. This patch is mostly from Anthony. I tweaked some format and added a little doc.
This commit is contained in:
parent
5f2ba9f2b1
commit
8b2bfbc198
7 changed files with 31 additions and 3 deletions
|
@ -41,6 +41,7 @@ Option Effect
|
|||
-h print this help message and exit
|
||||
-i Inspect interactively after running script (also PYTHONINSPECT=x) and
|
||||
force prompts, even if stdin appears not to be a terminal
|
||||
-m mod run library module as a script (terminates option list
|
||||
-O optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)
|
||||
-OO remove doc-strings in addition to the -O optimizations
|
||||
-Q arg division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew
|
||||
|
@ -51,6 +52,7 @@ Option Effect
|
|||
-W arg : warning control (arg is action:message:category:module:lineno)
|
||||
-x Skip first line of source, allowing use of non-unix Forms of #!cmd
|
||||
-? Help!
|
||||
-3 warn about Python 3.x incompatibilities
|
||||
-c Specify the command to execute (see next section). This terminates the
|
||||
command option list (following options are passed as arguments to the command).
|
||||
the name of a python file (.py) to execute read from stdin.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue