summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-11-29 10:19:53 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-11-29 10:19:53 (GMT)
commit0e90e99188d6fb54c3f5b31a0488318d9c38309d (patch)
treebaeb9819ae83194653cd3c3d4760a6c19c787a4d /Doc/library/functions.rst
parent567eba1852ed89e5cf93dbce33f7e2ca73e8f05d (diff)
parentfbc1c268031a9c8fad65f49c8381b6145bd66ffc (diff)
downloadcpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.zip
cpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.tar.gz
cpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.tar.bz2
Issue #19795: Improved markup of True/False constants.
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 474bb1d..fb4fc7f 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -48,7 +48,7 @@ are always available. They are listed here in alphabetical order.
.. function:: all(iterable)
- Return True if all elements of the *iterable* are true (or if the iterable
+ Return ``True`` if all elements of the *iterable* are true (or if the iterable
is empty). Equivalent to::
def all(iterable):
@@ -60,8 +60,8 @@ are always available. They are listed here in alphabetical order.
.. function:: any(iterable)
- Return True if any element of the *iterable* is true. If the iterable
- is empty, return False. Equivalent to::
+ Return ``True`` if any element of the *iterable* is true. If the iterable
+ is empty, return ``False``. Equivalent to::
def any(iterable):
for element in iterable:
@@ -905,7 +905,7 @@ are always available. They are listed here in alphabetical order.
the buffer will typically be 4096 or 8192 bytes long.
* "Interactive" text files (files for which :meth:`~io.IOBase.isatty`
- returns True) use line buffering. Other text files use the policy
+ returns ``True``) use line buffering. Other text files use the policy
described above for binary files.
*encoding* is the name of the encoding used to decode or encode the file.