From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 28 Oct 2022 10:15:34 +0000 (-0700) Subject: [3.11] Python documents state elsewhere that a comma is not an operator (GH-98736... X-Git-Tag: v3.11.1~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=434943e0b461f5d4c8e772a4117bbf99e99d1fa3;p=thirdparty%2FPython%2Fcpython.git [3.11] Python documents state elsewhere that a comma is not an operator (GH-98736) (#98757) 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 --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index cc969752d5d7..0cdf91e75b34 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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.