mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #28496: Mark up constants 0, 1 and -1 that denote return values or
special input values as literal text.
This commit is contained in:
commit
159f97b2d7
12 changed files with 64 additions and 64 deletions
|
@ -338,7 +338,7 @@ Other objects
|
|||
``p`` (:class:`bool`) [int]
|
||||
Tests the value passed in for truth (a boolean **p**\ redicate) and converts
|
||||
the result to its equivalent C true/false integer value.
|
||||
Sets the int to 1 if the expression was true and 0 if it was false.
|
||||
Sets the int to ``1`` if the expression was true and ``0`` if it was false.
|
||||
This accepts any valid Python value. See :ref:`truth` for more
|
||||
information about how Python tests values for truth.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue