bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760) · python/cpython@dc26997 (original) (raw)
| Original file line number | Diff line number | Diff line change | | | | ---------------------------------------------------------------------------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------- | ------------------------- | | | @@ -148,9 +148,8 @@ immutable, the same rules as for literals apply (i.e., two occurrences of the em | | | | | | 148 | 148 | tuple may or may not yield the same object). | | | | 149 | 149 | | | | | 150 | 150 | .. index:: | | | | 151 | | - single: comma; tuple display | | | | 152 | | - pair: tuple; display | | | | 153 | | - single: , (comma); tuple display | | | | | 151 | + single: comma | | | | | | 152 | + single: , (comma) | | | | | 154 | 153 | | | | | 155 | 154 | Note that tuples are not formed by the parentheses, but rather by use of the | | | | 156 | 155 | comma operator. The exception is the empty tuple, for which parentheses *are* | | | | @@ -1822,7 +1821,8 @@ precedence and have a left-to-right chaining feature as described in the | | | | | | 1822 | 1821 | | ``x[index]``, ``x[index:index]``, | Subscription, slicing, | | | 1823 | 1822 | | ``x(arguments...)``, ``x.attribute`` | call, attribute reference | | | 1824 | 1823 | +-----------------------------------------------+-------------------------------------+ | | | | 1825 | | -| ``(expressions...)``, | Binding or tuple display, | | | | 1824 | +| ``(expressions...)``, | Binding or parenthesized | | | | | 1825 | +| | expression, | | | | 1826 | 1826 | | ``[expressions...]``, | list display, | | | 1827 | 1827 | | ``{key: value...}``, | dictionary display, | | | 1828 | 1828 | | ``{expressions...}`` | set display | |