mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #19795: Improved markup of True/False constants.
This commit is contained in:
commit
0e90e99188
44 changed files with 93 additions and 87 deletions
|
|
@ -422,7 +422,7 @@ RGB value. This lets you change color 1, which is usually red, to purple or
|
|||
blue or any other color you like. Unfortunately, the Linux console doesn't
|
||||
support this, so I'm unable to try it out, and can't provide any examples. You
|
||||
can check if your terminal can do this by calling
|
||||
:func:`~curses.can_change_color`, which returns True if the capability is
|
||||
:func:`~curses.can_change_color`, which returns ``True`` if the capability is
|
||||
there. If you're lucky enough to have such a talented terminal, consult your
|
||||
system's man pages for more information.
|
||||
|
||||
|
|
|
|||
|
|
@ -689,8 +689,8 @@ constructed list's :meth:`~list.sort` method. ::
|
|||
|
||||
|
||||
The :func:`any(iter) <any>` and :func:`all(iter) <all>` built-ins look at the
|
||||
truth values of an iterable's contents. :func:`any` returns True if any element
|
||||
in the iterable is a true value, and :func:`all` returns True if all of the
|
||||
truth values of an iterable's contents. :func:`any` returns ``True`` if any element
|
||||
in the iterable is a true value, and :func:`all` returns ``True`` if all of the
|
||||
elements are true values:
|
||||
|
||||
>>> any([0,1,0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue