Skip to content

Commit d578aae

Browse files
authored
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.
1 parent 731909e commit d578aae

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)