https://github.com/python/cpython/commit/a38804bb981ba93a1efbb95a1e35a1c0b05740c7
commit: a38804bb981ba93a1efbb95a1e35a1c0b05740c7
branch: main
author: siliconforks <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2026-05-24T12:52:13+05:30
summary:

gh-148444: Use "zero of any numeric type" instead of "numeric zero of all 
types" (#148455)

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 68dcfc00bbd99c3..76e1ee74e35def9 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -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.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to