mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #19795: Improved markup of True/False constants.
This commit is contained in:
parent
4b79518f83
commit
fbc1c26803
41 changed files with 92 additions and 80 deletions
|
|
@ -687,8 +687,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