]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify one-item tuple (#114745)
authorTerry Jan Reedy <tjreedy@udel.edu>
Tue, 30 Jan 2024 18:40:54 +0000 (13:40 -0500)
committerGitHub <noreply@github.com>
Tue, 30 Jan 2024 18:40:54 +0000 (18:40 +0000)
A 'single tuple' means 'one typle, of whatever length.
Remove the unneeded and slight distracting parenthetical 'singleton' comment.

Doc/reference/expressions.rst

index 87ebdc1ca1c9c6a805465af6d2375833ac21f823..50e0f97a6534af2f1c0bea14aa44bbb9061d4b11 100644 (file)
@@ -1890,8 +1890,9 @@ the unpacking.
 
 .. index:: pair: trailing; comma
 
-The trailing comma is required only to create a single tuple (a.k.a. a
-*singleton*); it is optional in all other cases.  A single expression without a
+A trailing comma is required only to create a one-item tuple,
+such as ``1,``; it is optional in all other cases.
+A single expression without a
 trailing comma doesn't create a tuple, but rather yields the value of that
 expression. (To create an empty tuple, use an empty pair of parentheses:
 ``()``.)