Kaydet (Commit) e3d5787a authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #19795: Mark up True and False as literal text instead of bold.

üst ad13f338
...@@ -464,7 +464,7 @@ ancestor loggers. Because of this, it is unnecessary to define and configure ...@@ -464,7 +464,7 @@ ancestor loggers. Because of this, it is unnecessary to define and configure
handlers for all the loggers an application uses. It is sufficient to handlers for all the loggers an application uses. It is sufficient to
configure handlers for a top-level logger and create child loggers as needed. configure handlers for a top-level logger and create child loggers as needed.
(You can, however, turn off propagation by setting the *propagate* (You can, however, turn off propagation by setting the *propagate*
attribute of a logger to *False*.) attribute of a logger to ``False``.)
.. _handler-basic: .. _handler-basic:
...@@ -737,10 +737,10 @@ circumstances is dependent on the Python version. ...@@ -737,10 +737,10 @@ circumstances is dependent on the Python version.
For Python 2.x, the behaviour is as follows: For Python 2.x, the behaviour is as follows:
* If *logging.raiseExceptions* is *False* (production mode), the event is * If *logging.raiseExceptions* is ``False`` (production mode), the event is
silently dropped. silently dropped.
* If *logging.raiseExceptions* is *True* (development mode), a message * If *logging.raiseExceptions* is ``True`` (development mode), a message
'No handlers could be found for logger X.Y.Z' is printed once. 'No handlers could be found for logger X.Y.Z' is printed once.
.. _library-config: .. _library-config:
......
...@@ -695,7 +695,7 @@ how the command-line arguments should be handled. The supplied actions are: ...@@ -695,7 +695,7 @@ how the command-line arguments should be handled. The supplied actions are:
* ``'store_true'`` and ``'store_false'`` - These are special cases of * ``'store_true'`` and ``'store_false'`` - These are special cases of
``'store_const'`` using for storing the values ``True`` and ``False`` ``'store_const'`` using for storing the values ``True`` and ``False``
respectively. In addition, they create default values of *False* and *True* respectively. In addition, they create default values of ``False`` and ``True``
respectively. For example:: respectively. For example::
>>> parser = argparse.ArgumentParser() >>> parser = argparse.ArgumentParser()
......
...@@ -207,7 +207,7 @@ Classification functions ...@@ -207,7 +207,7 @@ Classification functions
.. function:: isinf(x) .. function:: isinf(x)
Return *True* if the real or the imaginary part of x is positive Return ``True`` if the real or the imaginary part of x is positive
or negative infinity. or negative infinity.
.. versionadded:: 2.6 .. versionadded:: 2.6
...@@ -215,7 +215,7 @@ Classification functions ...@@ -215,7 +215,7 @@ Classification functions
.. function:: isnan(x) .. function:: isnan(x)
Return *True* if the real or imaginary part of x is not a number (NaN). Return ``True`` if the real or imaginary part of x is not a number (NaN).
.. versionadded:: 2.6 .. versionadded:: 2.6
......
...@@ -35,7 +35,7 @@ lots of shared sub-objects. The keys are ordinary strings. ...@@ -35,7 +35,7 @@ lots of shared sub-objects. The keys are ordinary strings.
Because of Python semantics, a shelf cannot know when a mutable Because of Python semantics, a shelf cannot know when a mutable
persistent-dictionary entry is modified. By default modified objects are persistent-dictionary entry is modified. By default modified objects are
written *only* when assigned to the shelf (see :ref:`shelve-example`). If the written *only* when assigned to the shelf (see :ref:`shelve-example`). If the
optional *writeback* parameter is set to *True*, all entries accessed are also optional *writeback* parameter is set to ``True``, all entries accessed are also
cached in memory, and written back on :meth:`~Shelf.sync` and cached in memory, and written back on :meth:`~Shelf.sync` and
:meth:`~Shelf.close`; this can make it handier to mutate mutable entries in :meth:`~Shelf.close`; this can make it handier to mutate mutable entries in
the persistent dictionary, but, if many entries are accessed, it can consume the persistent dictionary, but, if many entries are accessed, it can consume
......
...@@ -320,8 +320,8 @@ functions. ...@@ -320,8 +320,8 @@ functions.
manner described in :ref:`converting-argument-sequence`. This is because manner described in :ref:`converting-argument-sequence`. This is because
the underlying ``CreateProcess()`` operates on strings. the underlying ``CreateProcess()`` operates on strings.
The *shell* argument (which defaults to *False*) specifies whether to use The *shell* argument (which defaults to ``False``) specifies whether to use
the shell as the program to execute. If *shell* is *True*, it is the shell as the program to execute. If *shell* is ``True``, it is
recommended to pass *args* as a string rather than as a sequence. recommended to pass *args* as a string rather than as a sequence.
On Unix with ``shell=True``, the shell defaults to :file:`/bin/sh`. If On Unix with ``shell=True``, the shell defaults to :file:`/bin/sh`. If
......
...@@ -263,7 +263,7 @@ Utility functions ...@@ -263,7 +263,7 @@ Utility functions
two-element tuples is used as the *query* argument, the first element of two-element tuples is used as the *query* argument, the first element of
each tuple is a key and the second is a value. The value element in itself each tuple is a key and the second is a value. The value element in itself
can be a sequence and in that case, if the optional parameter *doseq* is can be a sequence and in that case, if the optional parameter *doseq* is
evaluates to *True*, individual ``key=value`` pairs separated by ``'&'`` are evaluates to ``True``, individual ``key=value`` pairs separated by ``'&'`` are
generated for each element of the value sequence for the key. The order of generated for each element of the value sequence for the key. The order of
parameters in the encoded string will match the order of parameter tuples in parameters in the encoded string will match the order of parameter tuples in
the sequence. The :mod:`urlparse` module provides the functions the sequence. The :mod:`urlparse` module provides the functions
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment