]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH-15939)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Sep 2019 13:37:49 +0000 (06:37 -0700)
committerStéphane Wirtel <stephane@wirtel.be>
Wed, 11 Sep 2019 13:37:49 +0000 (15:37 +0200)
https://bugs.python.org/issue33459

Automerge-Triggered-By: @matrixise
(cherry picked from commit dc269971091710563a0d730a0d4b084901826c15)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/reference/expressions.rst

index 990600ec18888f74c2b541e24d0cafb19d18d32d..0a61ded2e3abd56ff6f62b6df93413f557b0bfa7 100644 (file)
@@ -148,9 +148,8 @@ immutable, the same rules as for literals apply (i.e., two occurrences of the em
 tuple may or may not yield the same object).
 
 .. index::
-   single: comma; tuple display
-   pair: tuple; display
-   single: , (comma); tuple display
+   single: comma
+   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*
@@ -1833,7 +1832,8 @@ precedence and have a left-to-right chaining feature as described in the
 | ``x[index]``, ``x[index:index]``,             | Subscription, slicing,              |
 | ``x(arguments...)``, ``x.attribute``          | call, attribute reference           |
 +-----------------------------------------------+-------------------------------------+
-| ``(expressions...)``,                         | Binding or tuple display,           |
+| ``(expressions...)``,                         | Binding or parenthesized            |
+|                                               | expression,                         |
 | ``[expressions...]``,                         | list display,                       |
 | ``{key: value...}``,                          | dictionary display,                 |
 | ``{expressions...}``                          | set display                         |