Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/logging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ empty string, all events are passed.

.. method:: filter(record)

Is the specified record to be logged? Returns false for no, true for
Is the specified record to be logged? Returns ``False`` for no, ``True`` for
yes. Filters can either modify log records in-place or return a completely
different record instance which will replace the original
log record in any future processing of the event.
Expand Down
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@ expression support in the :mod:`re` module).

.. method:: str.isprintable()

Return true if all characters in the string are printable, false if it
Return ``True`` if all characters in the string are printable, ``False`` if it
contains at least one non-printable character.

Here "printable" means the character is suitable for :func:`repr` to use in
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/string.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ See also the :ref:`formatspec` section.
The *field_name* itself begins with an *arg_name* that is either a number or a
keyword. If it's a number, it refers to a positional argument, and if it's a keyword,
it refers to a named keyword argument. An *arg_name* is treated as a number if
a call to :meth:`str.isdecimal` on the string would return true.
a call to :meth:`str.isdecimal` on the string would return ``True``.
If the numerical arg_names in a format string
are 0, 1, 2, ... in sequence, they can all be omitted (not just some)
and the numbers 0, 1, 2, ... will be automatically inserted in that order.
Expand Down Expand Up @@ -858,7 +858,7 @@ these rules. The methods of :class:`Template` are:

.. method:: is_valid()

Returns false if the template has invalid placeholders that will cause
Returns ``False`` if the template has invalid placeholders that will cause
:meth:`substitute` to raise :exc:`ValueError`.

.. versionadded:: 3.11
Expand Down
Loading