mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
[3.13] Docs: use boolean constants for returning boolean value (GH-133325) (GH-133761)
(cherry picked from commit 076004ae54
)
Co-authored-by: Yongzi Li <1538321957@qq.com>
This commit is contained in:
parent
b812cdd266
commit
0a39a182cf
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue