Skip to content
Permalink
Browse files

bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) (GH…

…-15939)

https://bugs.python.org/issue33459

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

Co-authored-by: Andre Delfino <adelfino@gmail.com>
  • Loading branch information...
2 people authored and matrixise committed Sep 11, 2019
1 parent 0fd8c05 commit 4c2fa5c474af81487c7a8d4188f9afd80d4d769b
Showing with 4 additions and 4 deletions.
  1. +4 −4 Doc/reference/expressions.rst
@@ -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 |

0 comments on commit 4c2fa5c

Please sign in to comment.
You can’t perform that action at this time.