Skip to content

Commit d0cd054

Browse files
committed
Use "zero of any numeric type" instead of "numeric zero of all types"
This makes the wording of the "Boolean operations" section consistent with the "Truth Value Testing" section.
1 parent 3ab94d6 commit d0cd054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,7 @@ Boolean operations
20482048

20492049
In the context of Boolean operations, and also when expressions are used by
20502050
control flow statements, the following values are interpreted as false:
2051-
``False``, ``None``, numeric zero of all types, and empty strings and containers
2051+
``False``, ``None``, zero of any numeric type, and empty strings and containers
20522052
(including strings, tuples, lists, dictionaries, sets and frozensets). All
20532053
other values are interpreted as true. User-defined objects can customize their
20542054
truth value by providing a :meth:`~object.__bool__` method.

0 commit comments

Comments
 (0)