Kaydet (Commit) c009d198 authored tarafından Fred Drake's avatar Fred Drake

Removed some extraneous and confusing parenthesized expressions.

Noted by Skip Montanaro <skip@mojam.com>.
üst c4428c58
...@@ -840,15 +840,15 @@ def make_incrementor(increment): ...@@ -840,15 +840,15 @@ def make_incrementor(increment):
expression_list: expression ("," expression)* [","] expression_list: expression ("," expression)* [","]
\end{verbatim} \end{verbatim}
An expression (expression) list containing at least one comma yields a An expression list containing at least one comma yields a
tuple. The length of the tuple is the number of expressions in the tuple. The length of the tuple is the number of expressions in the
list. The expressions are evaluated from left to right. list. The expressions are evaluated from left to right.
\obindex{tuple} \obindex{tuple}
The trailing comma is required only to create a single tuple (a.k.a. a The trailing comma is required only to create a single tuple (a.k.a. a
\emph{singleton}); it is optional in all other cases. A single \emph{singleton}); it is optional in all other cases. A single
expression (expression) without a trailing comma doesn't create a expression without a trailing comma doesn't create a
tuple, but rather yields the value of that expression (expression). tuple, but rather yields the value of that expression.
(To create an empty tuple, use an empty pair of parentheses: (To create an empty tuple, use an empty pair of parentheses:
\code{()}.) \code{()}.)
\indexii{trailing}{comma} \indexii{trailing}{comma}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment