diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:17:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:17:13 (GMT) |
commit | fbc1c268031a9c8fad65f49c8381b6145bd66ffc (patch) | |
tree | 61f0d5554573668c553dd9f39a50d74c12dd50bb /Doc/howto | |
parent | 4b79518f83fa6c4dadd69326276032d74c8e3df7 (diff) | |
download | cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.zip cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.tar.gz cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.tar.bz2 |
Issue #19795: Improved markup of True/False constants.
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/curses.rst | 2 | ||||
-rw-r--r-- | Doc/howto/functional.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst index c85b318..ea62b1c 100644 --- a/Doc/howto/curses.rst +++ b/Doc/howto/curses.rst @@ -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. diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index d241f1a..7189c65 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -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]) |