[Python-checkins] Python documents state elsewhere that a comma is not an operator, so … (GH-98736)

miss-islington webhook-mailer at python.org
Thu Oct 27 02:33:48 EDT 2022


https://github.com/python/cpython/commit/d578aaea6257458c199328100cbb5af64c6a043e
commit: d578aaea6257458c199328100cbb5af64c6a043e
branch: main
author: Gerardwx <Gerardwx at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-26T23:33:42-07:00
summary:

Python documents state elsewhere that a comma is not an operator, so … (GH-98736)



…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.

files:
M Doc/reference/expressions.rst

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 28c17566009f..920e4d19b82d 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.
 



More information about the Python-checkins mailing list