https://github.com/python/cpython/commit/076004ae5461cf3a7fe248a38e28afff33acdd14
commit: 076004ae5461cf3a7fe248a38e28afff33acdd14
branch: main
author: Yongzi Li <1538321...@qq.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-05-09T17:11:50+03:00
summary:

Docs: use boolean constants for returning boolean value (GH-133325)

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

diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 61d39a6671caed..1d9a655c7664ea 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2012,7 +2012,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 b44d98819b6998..c4012483a52f73 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -858,7 +858,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 -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to