Skip to content

Commit a38804b

Browse files
authored
gh-148444: Use "zero of any numeric type" instead of "numeric zero of all types" (#148455)
1 parent 55718cb commit a38804b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)