summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/decimal.rst3
-rw-r--r--Doc/library/devmode.rst2
-rw-r--r--Doc/library/stdtypes.rst11
-rw-r--r--Doc/library/sys.rst4
-rw-r--r--Doc/library/warnings.rst2
5 files changed, 14 insertions, 8 deletions
diff --git a/Doc/library/decimal.rst b/Doc/library/decimal.rst
index e194649e30..35a263a659 100644
--- a/Doc/library/decimal.rst
+++ b/Doc/library/decimal.rst
@@ -1484,7 +1484,8 @@ are also included in the pure Python version for compatibility.
.. data:: HAVE_CONTEXTVAR
- The default value is ``True``. If Python is compiled ``--without-decimal-contextvar``,
+ The default value is ``True``. If Python is :option:`configured with
+ --without-decimal-contextvar <--without-decimal-contextvar>`,
the C version uses a thread-local rather than a coroutine-local context and the value
is ``False``. This is slightly faster in some nested context scenarios.
diff --git a/Doc/library/devmode.rst b/Doc/library/devmode.rst
index e6ed59496c..44e7d4f541 100644
--- a/Doc/library/devmode.rst
+++ b/Doc/library/devmode.rst
@@ -13,6 +13,8 @@ detected.
It can be enabled using the :option:`-X dev <-X>` command line option or by
setting the :envvar:`PYTHONDEVMODE` environment variable to ``1``.
+See also :ref:`Python debug build <debug-build>`.
+
Effects of the Python Development Mode
======================================
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 0929f3271e..68b60508b7 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1581,13 +1581,15 @@ expression support in the :mod:`re` module).
By default, the *errors* argument is not checked for best performances, but
only used at the first encoding error. Enable the :ref:`Python Development
- Mode <devmode>`, or use a debug build to check *errors*.
+ Mode <devmode>`, or use a :ref:`debug build <debug-build>` to check
+ *errors*.
.. versionchanged:: 3.1
Support for keyword arguments added.
.. versionchanged:: 3.9
- The *errors* is now checked in development mode and in debug mode.
+ The *errors* is now checked in development mode and
+ in :ref:`debug mode <debug-build>`.
.. method:: str.endswith(suffix[, start[, end]])
@@ -2710,7 +2712,7 @@ arbitrary binary data.
By default, the *errors* argument is not checked for best performances, but
only used at the first decoding error. Enable the :ref:`Python Development
- Mode <devmode>`, or use a debug build to check *errors*.
+ Mode <devmode>`, or use a :ref:`debug build <debug-build>` to check *errors*.
.. note::
@@ -2722,7 +2724,8 @@ arbitrary binary data.
Added support for keyword arguments.
.. versionchanged:: 3.9
- The *errors* is now checked in development mode and in debug mode.
+ The *errors* is now checked in development mode and
+ in :ref:`debug mode <debug-build>`.
.. method:: bytes.endswith(suffix[, start[, end]])
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 80b30d01f9..d85eadbf5a 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -250,8 +250,8 @@ always available.
Print low-level information to stderr about the state of CPython's memory
allocator.
- If Python is configured --with-pydebug, it also performs some expensive
- internal consistency checks.
+ If Python is :option:`configured --with-pydebug <--with-pydebug>`, it also
+ performs some expensive internal consistency checks.
.. versionadded:: 3.3
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index 9c1743cad2..fe11aabbcb 100644
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -229,7 +229,7 @@ In regular release builds, the default warning filter has the following entries
ignore::ImportWarning
ignore::ResourceWarning
-In debug builds, the list of default warning filters is empty.
+In a :ref:`debug build <debug-build>`, the list of default warning filters is empty.
.. versionchanged:: 3.2
:exc:`DeprecationWarning` is now ignored by default in addition to