]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Python documents state elsewhere that a comma is not an operator (GH-98736...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Oct 2022 10:15:34 +0000 (03:15 -0700)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 10:15:34 +0000 (12:15 +0200)
Python documents state elsewhere that a comma is not an operator, so calling it an operator here is confusing. See https://docs.python.org/3/reference/lexical_analysis.htmlGH-operators and https://docs.python.org/3/faq/programming.htmlGH-id22.
(cherry picked from commit d578aaea6257458c199328100cbb5af64c6a043e)

Co-authored-by: Gerardwx <Gerardwx@users.noreply.github.com>
Doc/reference/expressions.rst

index cc969752d5d7b75dcf2ad0a2ef594734e086969f..0cdf91e75b344469a0610154cefe15a0e66da3af 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.