cpython: 2f9c986b46cd (original) (raw)

Mercurial > cpython

changeset 73812:2f9c986b46cd 2.7

#13494: s/cast/convert/. Also add a link. [#13494]

Ezio Melotti ezio.melotti@gmail.com
date Fri, 02 Dec 2011 19:47:24 +0200
parents d9e918c8d9d6
children 6e03ab9950f6
files Doc/library/stdtypes.rst
diffstat 1 files changed, 3 insertions(+), 3 deletions(-)[+] [-] Doc/library/stdtypes.rst 6

line wrap: on

line diff

--- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2955,9 +2955,9 @@ Boolean values are the two constant obje used to represent truth values (although other values can also be considered false or true). In numeric contexts (for example when used as the argument to an arithmetic operator), they behave like the integers 0 and 1, respectively. -The built-in function :func:bool can be used to cast any value to a Boolean, -if the value can be interpreted as a truth value (see section Truth Value -Testing above). +The built-in function :func:bool can be used to convert any value to a +Boolean, if the value can be interpreted as a truth value (see section +:ref:truth above). .. index:: single: False