diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-24 09:22:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-24 09:22:18 (GMT) |
commit | b9783d2e035d2babe8fcd9ec109044c0002c18a2 (patch) | |
tree | 8ff79a1298440a3956717b92451df180388e1bc0 /Doc/whatsnew | |
parent | e131c9720d087c0c4988bd2a5c62020feb9d1d77 (diff) | |
download | cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.zip cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.tar.gz cpython-b9783d2e035d2babe8fcd9ec109044c0002c18a2.tar.bz2 |
bpo-39429: Add a new "Python Development Mode" doc page (GH-18132)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.7.rst | 10 | ||||
-rw-r--r-- | Doc/whatsnew/3.9.rst | 7 |
2 files changed, 9 insertions, 8 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index 8a70fe2..04cfa57 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -102,7 +102,7 @@ CPython implementation improvements: * :ref:`PEP 538 <whatsnew37-pep538>`, legacy C locale coercion * :ref:`PEP 540 <whatsnew37-pep540>`, forced UTF-8 runtime mode * :ref:`PEP 552 <whatsnew37-pep552>`, deterministic .pycs -* :ref:`the new development runtime mode <whatsnew37-devmode>` +* :ref:`New Python Development Mode <whatsnew37-devmode>` * :ref:`PEP 565 <whatsnew37-pep565>`, improved :exc:`DeprecationWarning` handling @@ -479,15 +479,15 @@ Three new translations have been added: .. _whatsnew37-devmode: -Development Runtime Mode: -X dev +Python Development Mode (-X dev) -------------------------------- The new :option:`-X` ``dev`` command line option or the new :envvar:`PYTHONDEVMODE` environment variable can be used to enable -CPython's *development mode*. When in development mode, CPython performs +:ref:`Python Development Mode <devmode>`. When in development mode, Python performs additional runtime checks that are too expensive to be enabled by default. -See :option:`-X` ``dev`` documentation for the full description of the effects -of this mode. +See :ref:`Python Development Mode <devmode>` documentation for the full +description. Other Language Changes diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index a6e938f..ff5cb14 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -90,9 +90,10 @@ Other Language Changes in this case. (Contributed by Victor Stinner in :issue:`20443`.) -* In development mode and in debug build, *encoding* and *errors* arguments are - now checked on string encoding and decoding operations. Examples: - :func:`open`, :meth:`str.encode` and :meth:`bytes.decode`. +* In the :ref:`Python Development Mode <devmode>` and in debug build, the + *encoding* and *errors* arguments are now checked for string encoding and + decoding operations. Examples: :func:`open`, :meth:`str.encode` and + :meth:`bytes.decode`. By default, for best performance, the *errors* argument is only checked at the first encoding/decoding error and the *encoding* argument is sometimes |