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:
Serhiy Storchaka 2016-10-27 21:42:15 +03:00
commit 159f97b2d7
12 changed files with 64 additions and 64 deletions

View file

@ -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.