]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148444: Use "zero of any numeric type" instead of "numeric zero of all types"...
authorsiliconforks <siliconforks@users.noreply.github.com>
Sun, 24 May 2026 07:22:13 +0000 (04:22 -0300)
committerGitHub <noreply@github.com>
Sun, 24 May 2026 07:22:13 +0000 (12:52 +0530)
Doc/reference/expressions.rst

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