Skip to content

Commit 434943e

Browse files
[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 d578aae) Co-authored-by: Gerardwx <Gerardwx@users.noreply.github.com>
1 parent 194588d commit 434943e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ tuple may or may not yield the same object).
154154
single: , (comma)
155155

156156
Note that tuples are not formed by the parentheses, but rather by use of the
157-
comma operator. The exception is the empty tuple, for which parentheses *are*
157+
comma. The exception is the empty tuple, for which parentheses *are*
158158
required --- allowing unparenthesized "nothing" in expressions would cause
159159
ambiguities and allow common typos to pass uncaught.
160160

0 commit comments

Comments
 (0)