Skip to content

Commit 84c512d

Browse files
Viltrumlikclaude
andcommitted
gh-161077: Replace "truthy"/"falsy" with "true"/"false" in the docs
Python's documented terminology is true/false, not truthy/falsy, as used by Truth Value Testing, Boolean Operations, and the if and while statements. This replaces the five remaining occurrences in Doc/. In tkinter, TRUE/YES/ON are the integer 1 rather than the True singleton, so those two lines are phrased to keep true/false lowercase and unstyled instead of starting the sentence with a capitalised "True". Supersedes the retracted PR gh-158663. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent b5bffb9 commit 84c512d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎Doc/builtins/functions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ are always available. They are listed here in alphabetical order.
19501950
>>> MISSING
19511951
<MISSING>
19521952

1953-
Sentinel objects are truthy and compare equal only to themselves. They are
1953+
Sentinel objects are true and compare equal only to themselves. They are
19541954
intended to be compared with the :keyword:`is` operator.
19551955

19561956
``sentinel`` does not support subclassing.

‎Doc/library/smtplib.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
2424
An :class:`SMTP` instance encapsulates an SMTP connection. It has methods
2525
that support a full repertoire of SMTP and ESMTP operations.
2626

27-
If the host parameter is set to a truthy value, :meth:`SMTP.connect` is called with
27+
If the host parameter is set to a true value, :meth:`SMTP.connect` is called with
2828
host and port automatically when the object is created; otherwise, :meth:`!connect` must
2929
be called manually.
3030

@@ -88,7 +88,7 @@ Protocol) and :rfc:`1869` (SMTP Service Extensions).
8888
required from the beginning of the connection and using :meth:`SMTP.starttls` is
8989
not appropriate.
9090

91-
If the host parameter is set to a truthy value, :meth:`SMTP.connect` is called with host
91+
If the host parameter is set to a true value, :meth:`SMTP.connect` is called with host
9292
and port automatically when the object is created; otherwise, :meth:`!SMTP.connect` must
9393
be called manually.
9494

‎Doc/library/tkinter.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6820,13 +6820,13 @@ and :mod:`!tkinter.constants` namespaces.
68206820
YES
68216821
ON
68226822

6823-
Truthy values, all equal to the integer ``1``.
6823+
Values that are true, all equal to the integer ``1``.
68246824

68256825
.. data:: FALSE
68266826
NO
68276827
OFF
68286828

6829-
Falsy values, all equal to the integer ``0``.
6829+
Values that are false, all equal to the integer ``0``.
68306830

68316831
.. data:: N
68326832
S

0 commit comments

Comments
 (0)