https://github.com/python/cpython/commit/0a39a182cf8fb5715061c6563eb4cfb2c49a8da3
commit: 0a39a182cf8fb5715061c6563eb4cfb2c49a8da3
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2025-05-09T14:19:23Z
summary:

[3.13] Docs: use boolean constants for returning boolean value (GH-133325) 
(GH-133761)

(cherry picked from commit 076004ae5461cf3a7fe248a38e28afff33acdd14)

Co-authored-by: Yongzi Li <[email protected]>

files:
M Doc/library/stdtypes.rst
M Doc/library/string.rst

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 97e023f30bef9e..0936be0caaf903 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1876,7 +1876,7 @@ expression support in the :mod:`re` module).
 
 .. method:: str.isprintable()
 
-   Return true if all characters in the string are printable, false if it
+   Return ``True`` if all characters in the string are printable, ``False`` if 
it
    contains at least one non-printable character.
 
    Here "printable" means the character is suitable for :func:`repr` to use in
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 1cad5f3ff225f3..e0ecb3799eabf7 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -845,7 +845,7 @@ these rules.  The methods of :class:`Template` are:
 
    .. method:: is_valid()
 
-      Returns false if the template has invalid placeholders that will cause
+      Returns ``False`` if the template has invalid placeholders that will 
cause
       :meth:`substitute` to raise :exc:`ValueError`.
 
       .. versionadded:: 3.11

_______________________________________________
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