diff options
author | Gerardwx <Gerardwx@users.noreply.github.com> | 2022-10-27 06:33:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-27 06:33:42 (GMT) |
commit | d578aaea6257458c199328100cbb5af64c6a043e (patch) | |
tree | 149a68bf7bad166b2825b22b24b80b6611a23ddf /Doc | |
parent | 731909ebef3add602374e8a10002c4574bb24d4b (diff) | |
download | cpython-d578aaea6257458c199328100cbb5af64c6a043e.zip cpython-d578aaea6257458c199328100cbb5af64c6a043e.tar.gz cpython-d578aaea6257458c199328100cbb5af64c6a043e.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/reference/expressions.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 28c1756..920e4d1 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. |