Created
July 13, 2020 18:50
-
-
Save jbn/70dc11d70d8212db498cb6dd880326ee to your computer and use it in GitHub Desktop.
Diff of python --help over time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python 2.7.10 | |
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... | |
Options and arguments (and corresponding environment variables): | |
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
-d : debug output from parser; also PYTHONDEBUG=x | |
-E : ignore PYTHON* environment variables (such as PYTHONPATH) | |
-h : print this help message and exit (also --help) | |
-i : inspect interactively after running script; forces a prompt even | |
if stdin does not appear to be a terminal; also PYTHONINSPECT=x | |
-m mod : run library module as a script (terminates option list) | |
-O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
-OO : remove doc-strings in addition to the -O optimizations | |
-R : use a pseudo-random salt to make hash() values of various types be | |
unpredictable between separate invocations of the interpreter, as | |
a defense against denial-of-service attacks | |
-Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew | |
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE | |
-S : don't imply 'import site' on initialization | |
-t : issue warnings about inconsistent tab usage (-tt: issue errors) | |
-u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x | |
see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
can be supplied multiple times to increase verbosity | |
-V : print the Python version number and exit (also --version) | |
-W arg : warning control; arg is action:message:category:module:lineno | |
also PYTHONWARNINGS=arg | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
-3 : warn about Python 3.x incompatibilities that 2to3 cannot trivially fix | |
file : program read from script file | |
- : program read from stdin (default; interactive mode if a tty) | |
arg ...: arguments passed to program in sys.argv[1:] | |
Other environment variables: | |
PYTHONSTARTUP: file executed on interactive startup (no default) | |
PYTHONPATH : ':'-separated list of directories prefixed to the | |
default module search path. The result is sys.path. | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
PYTHONHASHSEED: if this variable is set to 'random', the effect is the same | |
as specifying the -R option: a random value is used to seed the hashes of | |
str, bytes and datetime objects. It can also be set to an integer | |
in the range [0,4294967295] to get hash values with a predictable seed. | |
Python 2.7.14 | |
*** | |
--- | |
*************** | |
*** 2,3 **** | |
--- 2,5 ---- | |
Options and arguments (and corresponding environment variables): | |
+ -b : issue warnings about comparing bytearray with unicode | |
+ (-bb: issue errors) | |
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
Python 2.7.7 | |
*** | |
--- | |
*************** | |
*** 2,5 **** | |
Options and arguments (and corresponding environment variables): | |
- -b : issue warnings about comparing bytearray with unicode | |
- (-bb: issue errors) | |
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
--- 2,3 ---- | |
Python 3.2.6 | |
*** | |
--- | |
*************** | |
*** 2,3 **** | |
--- 2,5 ---- | |
Options and arguments (and corresponding environment variables): | |
+ -b : issue warnings about str(bytes_instance), str(bytearray_instance) | |
+ and comparing bytes/bytearray with str. (-bb: issue errors) | |
-B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
*************** | |
*** 12,20 **** | |
-OO : remove doc-strings in addition to the -O optimizations | |
-R : use a pseudo-random salt to make hash() values of various types be | |
unpredictable between separate invocations of the interpreter, as | |
! a defense against denial-of-service attacks | |
! -Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew | |
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE | |
-S : don't imply 'import site' on initialization | |
- -t : issue warnings about inconsistent tab usage (-tt: issue errors) | |
-u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x | |
--- 14,21 ---- | |
-OO : remove doc-strings in addition to the -O optimizations | |
+ -q : don't print version and copyright messages on interactive startup | |
-R : use a pseudo-random salt to make hash() values of various types be | |
unpredictable between separate invocations of the interpreter, as | |
! a defence against denial-of-service attacks | |
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE | |
-S : don't imply 'import site' on initialization | |
-u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x | |
*************** | |
*** 27,29 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -3 : warn about Python 3.x incompatibilities that 2to3 cannot trivially fix | |
file : program read from script file | |
--- 28,30 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
file : program read from script file | |
Python 3.3.5 | |
*** | |
--- | |
*************** | |
*** 15,22 **** | |
-q : don't print version and copyright messages on interactive startup | |
- -R : use a pseudo-random salt to make hash() values of various types be | |
- unpredictable between separate invocations of the interpreter, as | |
- a defence against denial-of-service attacks | |
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x | |
see man page for details on internal buffering relating to '-u' | |
--- 15,20 ---- | |
-q : don't print version and copyright messages on interactive startup | |
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
! also PYTHONUNBUFFERED=x | |
see man page for details on internal buffering relating to '-u' | |
*************** | |
*** 41,45 **** | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
! PYTHONHASHSEED: if this variable is set to 'random', the effect is the same | |
! as specifying the -R option: a random value is used to seed the hashes of | |
! str, bytes and datetime objects. It can also be set to an integer | |
! in the range [0,4294967295] to get hash values with a predictable seed. | |
--- 39,44 ---- | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
! PYTHONFAULTHANDLER: dump the Python traceback on fatal errors. | |
! PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str, bytes and datetime objects. It can also be | |
! set to an integer in the range [0,4294967295] to get hash values with a | |
! predictable seed. | |
Python 3.4.1 | |
*** | |
--- | |
*************** | |
*** 11,12 **** | |
--- 11,13 ---- | |
if stdin does not appear to be a terminal; also PYTHONINSPECT=x | |
+ -I : isolate Python from the user's environment (implies -E and -s) | |
-m mod : run library module as a script (terminates option list) | |
Python 3.5.4 | |
*** | |
--- | |
*************** | |
*** 4,6 **** | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
--- 4,6 ---- | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
Python 3.6.0 | |
*** | |
--- | |
*************** | |
*** 4,6 **** | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
--- 4,6 ---- | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
*************** | |
*** 24,25 **** | |
--- 24,26 ---- | |
-V : print the Python version number and exit (also --version) | |
+ when given twice, print more information about the build | |
-W arg : warning control; arg is action:message:category:module:lineno | |
*************** | |
*** 45 **** | |
--- 46,49 ---- | |
predictable seed. | |
+ PYTHONMALLOC: set the Python memory allocators and/or install debug hooks | |
+ on Python memory allocators. Use PYTHONMALLOC=debug to install debug | |
+ hooks. | |
Python 3.6.0a2 | |
*** | |
--- | |
*************** | |
*** 24,26 **** | |
-V : print the Python version number and exit (also --version) | |
- when given twice, print more information about the build | |
-W arg : warning control; arg is action:message:category:module:lineno | |
--- 24,25 ---- | |
Python 3.6.0b4 | |
*** | |
--- | |
*************** | |
*** 24,25 **** | |
--- 24,26 ---- | |
-V : print the Python version number and exit (also --version) | |
+ when given twice, print more information about the build | |
-W arg : warning control; arg is action:message:category:module:lineno | |
Python 3.6.10 | |
*** | |
--- | |
*************** | |
*** 4,6 **** | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .py[co] files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
--- 4,6 ---- | |
and comparing bytes/bytearray with str. (-bb: issue errors) | |
! -B : don't write .pyc files on import; also PYTHONDONTWRITEBYTECODE=x | |
-c cmd : program passed in as string (terminates option list) | |
*************** | |
*** 13,16 **** | |
-m mod : run library module as a script (terminates option list) | |
! -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
! -OO : remove doc-strings in addition to the -O optimizations | |
-q : don't print version and copyright messages on interactive startup | |
--- 13,18 ---- | |
-m mod : run library module as a script (terminates option list) | |
! -O : remove assert and __debug__-dependent statements; add .opt-1 before | |
! .pyc extension; also PYTHONOPTIMIZE=x | |
! -OO : do -O changes and also discard docstrings; add .opt-2 before | |
! .pyc extension | |
-q : don't print version and copyright messages on interactive startup | |
*************** | |
*** 18,22 **** | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
also PYTHONUNBUFFERED=x | |
- see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 20,24 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : force the binary I/O layers of stdout and stderr to be unbuffered; | |
! stdin is always buffered; text I/O layer will be line-buffered; | |
also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
*************** | |
*** 38,40 **** | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
--- 40,42 ---- | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/lib/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
Python 3.6.2 | |
*** | |
--- | |
*************** | |
*** 13,18 **** | |
-m mod : run library module as a script (terminates option list) | |
! -O : remove assert and __debug__-dependent statements; add .opt-1 before | |
! .pyc extension; also PYTHONOPTIMIZE=x | |
! -OO : do -O changes and also discard docstrings; add .opt-2 before | |
! .pyc extension | |
-q : don't print version and copyright messages on interactive startup | |
--- 13,16 ---- | |
-m mod : run library module as a script (terminates option list) | |
! -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
! -OO : remove doc-strings in addition to the -O optimizations | |
-q : don't print version and copyright messages on interactive startup | |
*************** | |
*** 20,24 **** | |
-S : don't imply 'import site' on initialization | |
! -u : force the binary I/O layers of stdout and stderr to be unbuffered; | |
! stdin is always buffered; text I/O layer will be line-buffered; | |
also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 18,22 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
also PYTHONUNBUFFERED=x | |
+ see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
*************** | |
*** 40,42 **** | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/lib/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
--- 38,40 ---- | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
Python 3.6.4 | |
*** | |
--- | |
*************** | |
*** 18,22 **** | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
also PYTHONUNBUFFERED=x | |
- see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 18,22 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : force the binary I/O layers of stdout and stderr to be unbuffered; | |
! stdin is always buffered; text I/O layer will be line-buffered; | |
also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
*************** | |
*** 38,40 **** | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
--- 38,40 ---- | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/lib/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
Python 3.6.5 | |
*** | |
--- | |
*************** | |
*** 13,16 **** | |
-m mod : run library module as a script (terminates option list) | |
! -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
! -OO : remove doc-strings in addition to the -O optimizations | |
-q : don't print version and copyright messages on interactive startup | |
--- 13,18 ---- | |
-m mod : run library module as a script (terminates option list) | |
! -O : remove assert and __debug__-dependent statements; add .opt-1 before | |
! .pyc extension; also PYTHONOPTIMIZE=x | |
! -OO : do -O changes and also discard docstrings; add .opt-2 before | |
! .pyc extension | |
-q : don't print version and copyright messages on interactive startup | |
Python 3.7.0 | |
*** | |
--- | |
*************** | |
*** 20,24 **** | |
-S : don't imply 'import site' on initialization | |
! -u : force the binary I/O layers of stdout and stderr to be unbuffered; | |
! stdin is always buffered; text I/O layer will be line-buffered; | |
! also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 20,23 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : force the stdout and stderr streams to be unbuffered; | |
! this option has no effect on stdin; also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
*************** | |
*** 31,32 **** | |
--- 30,33 ---- | |
-X opt : set implementation-specific option | |
+ --check-hash-based-pycs always|default|never: | |
+ control how Python invalidates hash-based .pyc files | |
file : program read from script file | |
*************** | |
*** 51 **** | |
--- 52,56 ---- | |
hooks. | |
+ PYTHONCOERCECLOCALE: if this variable is set to 0, it disables the locale | |
+ coercion behavior. Use PYTHONCOERCECLOCALE=warn to request display of | |
+ locale coercion and locale compatibility warnings on stderr. | |
+ PYTHONDEVMODE: enable the development mode. | |
Python 3.7.0a1 | |
*** | |
--- | |
*************** | |
*** 13,18 **** | |
-m mod : run library module as a script (terminates option list) | |
! -O : remove assert and __debug__-dependent statements; add .opt-1 before | |
! .pyc extension; also PYTHONOPTIMIZE=x | |
! -OO : do -O changes and also discard docstrings; add .opt-2 before | |
! .pyc extension | |
-q : don't print version and copyright messages on interactive startup | |
--- 13,16 ---- | |
-m mod : run library module as a script (terminates option list) | |
! -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
! -OO : remove doc-strings in addition to the -O optimizations | |
-q : don't print version and copyright messages on interactive startup | |
*************** | |
*** 20,23 **** | |
-S : don't imply 'import site' on initialization | |
! -u : force the stdout and stderr streams to be unbuffered; | |
! this option has no effect on stdin; also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 18,22 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
! also PYTHONUNBUFFERED=x | |
! see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
*************** | |
*** 30,33 **** | |
-X opt : set implementation-specific option | |
- --check-hash-based-pycs always|default|never: | |
- control how Python invalidates hash-based .pyc files | |
file : program read from script file | |
--- 29,30 ---- | |
*************** | |
*** 41,43 **** | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/lib/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
--- 38,40 ---- | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
*************** | |
*** 55,56 **** | |
locale coercion and locale compatibility warnings on stderr. | |
- PYTHONDEVMODE: enable the development mode. | |
--- 52 ---- | |
Python 3.7.0a2 | |
*** | |
--- | |
*************** | |
*** 18,22 **** | |
-S : don't imply 'import site' on initialization | |
! -u : unbuffered binary stdout and stderr, stdin always buffered; | |
! also PYTHONUNBUFFERED=x | |
! see man page for details on internal buffering relating to '-u' | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
--- 18,21 ---- | |
-S : don't imply 'import site' on initialization | |
! -u : force the stdout and stderr streams to be unbuffered; | |
! this option has no effect on stdin; also PYTHONUNBUFFERED=x | |
-v : verbose (trace import statements); also PYTHONVERBOSE=x | |
Python 3.7.0a3 | |
*** | |
--- | |
*************** | |
*** 37,39 **** | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
--- 37,39 ---- | |
PYTHONHOME : alternate <prefix> directory (or <prefix>:<exec_prefix>). | |
! The default module search path uses <prefix>/lib/pythonX.X. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
*************** | |
*** 51 **** | |
--- 51,52 ---- | |
locale coercion and locale compatibility warnings on stderr. | |
+ PYTHONDEVMODE: enable the development mode. | |
Python 3.7.0a4 | |
*** | |
--- | |
*************** | |
*** 28,29 **** | |
--- 28,31 ---- | |
-X opt : set implementation-specific option | |
+ --check-hash-based-pycs always|default|never: | |
+ control how Python invalidates hash-based .pyc files | |
file : program read from script file | |
Python 3.7.0b2 | |
*** | |
--- | |
*************** | |
*** 13,16 **** | |
-m mod : run library module as a script (terminates option list) | |
! -O : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x | |
! -OO : remove doc-strings in addition to the -O optimizations | |
-q : don't print version and copyright messages on interactive startup | |
--- 13,18 ---- | |
-m mod : run library module as a script (terminates option list) | |
! -O : remove assert and __debug__-dependent statements; add .opt-1 before | |
! .pyc extension; also PYTHONOPTIMIZE=x | |
! -OO : do -O changes and also discard docstrings; add .opt-2 before | |
! .pyc extension | |
-q : don't print version and copyright messages on interactive startup | |
Python 3.7.1 | |
*** | |
--- | |
*************** | |
*** 55,56 **** | |
--- 55,58 ---- | |
locale coercion and locale compatibility warnings on stderr. | |
+ PYTHONBREAKPOINT: if this variable is set to 0, it disables the default | |
+ debugger. It can be set to the callable of your debugger of choice. | |
PYTHONDEVMODE: enable the development mode. | |
Python 3.7.6 | |
*** | |
--- | |
*************** | |
*** 43,44 **** | |
--- 43,45 ---- | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
+ PYTHONUTF8: if set to 1, enable the UTF-8 mode. | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
Python 3.7.7 | |
*** | |
--- | |
*************** | |
*** 29,31 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
--check-hash-based-pycs always|default|never: | |
--- 29,59 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option. The following options are available: | |
! | |
! -X faulthandler: enable faulthandler | |
! -X showrefcount: output the total reference count and number of used | |
! memory blocks when the program finishes or after each statement in the | |
! interactive interpreter. This only works on debug builds | |
! -X tracemalloc: start tracing Python memory allocations using the | |
! tracemalloc module. By default, only the most recent frame is stored in a | |
! traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a | |
! traceback limit of NFRAME frames | |
! -X showalloccount: output the total count of allocated objects for each | |
! type when the program finishes. This only works when Python was built with | |
! COUNT_ALLOCS defined | |
! -X importtime: show how long each import takes. It shows module name, | |
! cumulative time (including nested imports) and self time (excluding | |
! nested imports). Note that its output may be broken in multi-threaded | |
! application. Typical usage is python3 -X importtime -c 'import asyncio' | |
! -X dev: enable CPython’s “development mode”, introducing additional runtime | |
! checks which are too expensive to be enabled by default. Effect of the | |
! developer mode: | |
! * Add default warning filter, as -W default | |
! * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function | |
! * Enable the faulthandler module to dump the Python traceback on a crash | |
! * Enable asyncio debug mode | |
! * Set the dev_mode attribute of sys.flags to True | |
! -X utf8: enable UTF-8 mode for operating system interfaces, overriding the default | |
! locale-aware mode. -X utf8=0 explicitly disables UTF-8 mode (even when it would | |
! otherwise activate automatically) | |
! | |
--check-hash-based-pycs always|default|never: | |
Python 3.8.0 | |
*** | |
--- | |
*************** | |
*** 29,59 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option. The following options are available: | |
! | |
! -X faulthandler: enable faulthandler | |
! -X showrefcount: output the total reference count and number of used | |
! memory blocks when the program finishes or after each statement in the | |
! interactive interpreter. This only works on debug builds | |
! -X tracemalloc: start tracing Python memory allocations using the | |
! tracemalloc module. By default, only the most recent frame is stored in a | |
! traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a | |
! traceback limit of NFRAME frames | |
! -X showalloccount: output the total count of allocated objects for each | |
! type when the program finishes. This only works when Python was built with | |
! COUNT_ALLOCS defined | |
! -X importtime: show how long each import takes. It shows module name, | |
! cumulative time (including nested imports) and self time (excluding | |
! nested imports). Note that its output may be broken in multi-threaded | |
! application. Typical usage is python3 -X importtime -c 'import asyncio' | |
! -X dev: enable CPython’s “development mode”, introducing additional runtime | |
! checks which are too expensive to be enabled by default. Effect of the | |
! developer mode: | |
! * Add default warning filter, as -W default | |
! * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function | |
! * Enable the faulthandler module to dump the Python traceback on a crash | |
! * Enable asyncio debug mode | |
! * Set the dev_mode attribute of sys.flags to True | |
! -X utf8: enable UTF-8 mode for operating system interfaces, overriding the default | |
! locale-aware mode. -X utf8=0 explicitly disables UTF-8 mode (even when it would | |
! otherwise activate automatically) | |
! | |
--check-hash-based-pycs always|default|never: | |
--- 29,31 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
--check-hash-based-pycs always|default|never: | |
*************** | |
*** 71,73 **** | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
- PYTHONUTF8: if set to 1, enable the UTF-8 mode. | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
--- 43,44 ---- | |
*************** | |
*** 75,78 **** | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str, bytes and datetime objects. It can also be | |
! set to an integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
--- 46,49 ---- | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str and bytes objects. It can also be set to an | |
! integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
*************** | |
*** 87 **** | |
--- 58,59 ---- | |
PYTHONDEVMODE: enable the development mode. | |
+ PYTHONPYCACHEPREFIX: root directory for bytecode cache (pyc) files. | |
Python 3.8.0a1 | |
*** | |
--- | |
*************** | |
*** 46,49 **** | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str and bytes objects. It can also be set to an | |
! integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
--- 46,49 ---- | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str, bytes and datetime objects. It can also be | |
! set to an integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
Python 3.8.0b4 | |
*** | |
--- | |
*************** | |
*** 46,49 **** | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str, bytes and datetime objects. It can also be | |
! set to an integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
--- 46,49 ---- | |
PYTHONHASHSEED: if this variable is set to 'random', a random value is used | |
! to seed the hashes of str and bytes objects. It can also be set to an | |
! integer in the range [0,4294967295] to get hash values with a | |
predictable seed. | |
Python 3.8.1 | |
*** | |
--- | |
*************** | |
*** 43,44 **** | |
--- 43,45 ---- | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
+ PYTHONUTF8: if set to 1, enable the UTF-8 mode. | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
Python 3.8.2 | |
*** | |
--- | |
*************** | |
*** 29,31 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
--check-hash-based-pycs always|default|never: | |
--- 29,62 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option. The following options are available: | |
! | |
! -X faulthandler: enable faulthandler | |
! -X showrefcount: output the total reference count and number of used | |
! memory blocks when the program finishes or after each statement in the | |
! interactive interpreter. This only works on debug builds | |
! -X tracemalloc: start tracing Python memory allocations using the | |
! tracemalloc module. By default, only the most recent frame is stored in a | |
! traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a | |
! traceback limit of NFRAME frames | |
! -X showalloccount: output the total count of allocated objects for each | |
! type when the program finishes. This only works when Python was built with | |
! COUNT_ALLOCS defined | |
! -X importtime: show how long each import takes. It shows module name, | |
! cumulative time (including nested imports) and self time (excluding | |
! nested imports). Note that its output may be broken in multi-threaded | |
! application. Typical usage is python3 -X importtime -c 'import asyncio' | |
! -X dev: enable CPython’s “development mode”, introducing additional runtime | |
! checks which are too expensive to be enabled by default. Effect of the | |
! developer mode: | |
! * Add default warning filter, as -W default | |
! * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function | |
! * Enable the faulthandler module to dump the Python traceback on a crash | |
! * Enable asyncio debug mode | |
! * Set the dev_mode attribute of sys.flags to True | |
! * io.IOBase destructor logs close() exceptions | |
! -X utf8: enable UTF-8 mode for operating system interfaces, overriding the default | |
! locale-aware mode. -X utf8=0 explicitly disables UTF-8 mode (even when it would | |
! otherwise activate automatically) | |
! -X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the | |
! given directory instead of to the code tree | |
! | |
--check-hash-based-pycs always|default|never: | |
Python 3.9.0a1 | |
*** | |
--- | |
*************** | |
*** 29,62 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option. The following options are available: | |
! | |
! -X faulthandler: enable faulthandler | |
! -X showrefcount: output the total reference count and number of used | |
! memory blocks when the program finishes or after each statement in the | |
! interactive interpreter. This only works on debug builds | |
! -X tracemalloc: start tracing Python memory allocations using the | |
! tracemalloc module. By default, only the most recent frame is stored in a | |
! traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a | |
! traceback limit of NFRAME frames | |
! -X showalloccount: output the total count of allocated objects for each | |
! type when the program finishes. This only works when Python was built with | |
! COUNT_ALLOCS defined | |
! -X importtime: show how long each import takes. It shows module name, | |
! cumulative time (including nested imports) and self time (excluding | |
! nested imports). Note that its output may be broken in multi-threaded | |
! application. Typical usage is python3 -X importtime -c 'import asyncio' | |
! -X dev: enable CPython’s “development mode”, introducing additional runtime | |
! checks which are too expensive to be enabled by default. Effect of the | |
! developer mode: | |
! * Add default warning filter, as -W default | |
! * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function | |
! * Enable the faulthandler module to dump the Python traceback on a crash | |
! * Enable asyncio debug mode | |
! * Set the dev_mode attribute of sys.flags to True | |
! * io.IOBase destructor logs close() exceptions | |
! -X utf8: enable UTF-8 mode for operating system interfaces, overriding the default | |
! locale-aware mode. -X utf8=0 explicitly disables UTF-8 mode (even when it would | |
! otherwise activate automatically) | |
! -X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the | |
! given directory instead of to the code tree | |
! | |
--check-hash-based-pycs always|default|never: | |
--- 29,31 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
--check-hash-based-pycs always|default|never: | |
*************** | |
*** 74,76 **** | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
- PYTHONUTF8: if set to 1, enable the UTF-8 mode. | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
--- 43,44 ---- | |
Python 3.9.0a2 | |
*** | |
--- | |
*************** | |
*** 43,44 **** | |
--- 43,45 ---- | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). | |
+ PYTHONUTF8: if set to 1, enable the UTF-8 mode. | |
PYTHONIOENCODING: Encoding[:errors] used for stdin/stdout/stderr. | |
Python 3.9.0a3 | |
*** | |
--- | |
*************** | |
*** 29,31 **** | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option | |
--check-hash-based-pycs always|default|never: | |
--- 29,62 ---- | |
-x : skip first line of source, allowing use of non-Unix forms of #!cmd | |
! -X opt : set implementation-specific option. The following options are available: | |
! | |
! -X faulthandler: enable faulthandler | |
! -X showrefcount: output the total reference count and number of used | |
! memory blocks when the program finishes or after each statement in the | |
! interactive interpreter. This only works on debug builds | |
! -X tracemalloc: start tracing Python memory allocations using the | |
! tracemalloc module. By default, only the most recent frame is stored in a | |
! traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a | |
! traceback limit of NFRAME frames | |
! -X showalloccount: output the total count of allocated objects for each | |
! type when the program finishes. This only works when Python was built with | |
! COUNT_ALLOCS defined | |
! -X importtime: show how long each import takes. It shows module name, | |
! cumulative time (including nested imports) and self time (excluding | |
! nested imports). Note that its output may be broken in multi-threaded | |
! application. Typical usage is python3 -X importtime -c 'import asyncio' | |
! -X dev: enable CPython’s “development mode”, introducing additional runtime | |
! checks which are too expensive to be enabled by default. Effect of the | |
! developer mode: | |
! * Add default warning filter, as -W default | |
! * Install debug hooks on memory allocators: see the PyMem_SetupDebugHooks() C function | |
! * Enable the faulthandler module to dump the Python traceback on a crash | |
! * Enable asyncio debug mode | |
! * Set the dev_mode attribute of sys.flags to True | |
! * io.IOBase destructor logs close() exceptions | |
! -X utf8: enable UTF-8 mode for operating system interfaces, overriding the default | |
! locale-aware mode. -X utf8=0 explicitly disables UTF-8 mode (even when it would | |
! otherwise activate automatically) | |
! -X pycache_prefix=PATH: enable writing .pyc files to a parallel tree rooted at the | |
! given directory instead of to the code tree | |
! | |
--check-hash-based-pycs always|default|never: | |
Python 3.9.0a4 | |
*** | |
--- | |
*************** | |
*** 39,43 **** | |
traceback limit of NFRAME frames | |
- -X showalloccount: output the total count of allocated objects for each | |
- type when the program finishes. This only works when Python was built with | |
- COUNT_ALLOCS defined | |
-X importtime: show how long each import takes. It shows module name, | |
--- 39,40 ---- | |
Python 3.9.0a6 | |
*** | |
--- | |
*************** | |
*** 32,33 **** | |
--- 32,34 ---- | |
-X faulthandler: enable faulthandler | |
+ -X oldparser: enable the traditional LL(1) parser; also PYTHONOLDPARSER | |
-X showrefcount: output the total reference count and number of used | |
Python 3.9.0b2 | |
*** | |
--- | |
*************** | |
*** 71,72 **** | |
--- 71,73 ---- | |
The default module search path uses <prefix>/lib/pythonX.X. | |
+ PYTHONPLATLIBDIR : override sys.platlibdir. | |
PYTHONCASEOK : ignore case in 'import' statements (Windows). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment