]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Python documents state elsewhere that a comma is not an operator, so … (GH-98736)
authorGerardwx <Gerardwx@users.noreply.github.com>
Thu, 27 Oct 2022 06:33:42 +0000 (02:33 -0400)
committerGitHub <noreply@github.com>
Thu, 27 Oct 2022 06:33:42 +0000 (23:33 -0700)
…calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.html#operators and https://docs.python.org/3/faq/programming.html#id22.

Doc/reference/expressions.rst

index 28c17566009fbdc68450cb6b1a5d3a7b45d30d59..920e4d19b82d8d630a82af1e0694768e604f124e 100644 (file)
@@ -154,7 +154,7 @@ tuple may or may not yield the same object).
    single: , (comma)
 
 Note that tuples are not formed by the parentheses, but rather by use of the
-comma operator.  The exception is the empty tuple, for which parentheses *are*
+comma.  The exception is the empty tuple, for which parentheses *are*
 required --- allowing unparenthesized "nothing" in expressions would cause
 ambiguities and allow common typos to pass uncaught.