From d578aaea6257458c199328100cbb5af64c6a043e Mon Sep 17 00:00:00 2001 From: Gerardwx Date: Thu, 27 Oct 2022 02:33:42 -0400 Subject: [PATCH] =?UTF-8?q?Python=20documents=20state=20elsewhere=20that?= =?UTF-8?q?=20a=20comma=20is=20not=20an=20operator,=20so=20=E2=80=A6=20(GH?= =?UTF-8?q?-98736)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 28c17566009..920e4d19b82 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.