summaryrefslogtreecommitdiffstats
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorAndre Delfino <adelfino@gmail.com>2019-09-11 13:16:11 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-09-11 13:16:11 (GMT)
commitdc269971091710563a0d730a0d4b084901826c15 (patch)
tree374ff28381bfced340feb3d466b434f08936930b /Doc/reference/expressions.rst
parenta828514cc3715ebbc700fefa41c0ef044cbd6741 (diff)
downloadcpython-dc269971091710563a0d730a0d4b084901826c15.zip
cpython-dc269971091710563a0d730a0d4b084901826c15.tar.gz
cpython-dc269971091710563a0d730a0d4b084901826c15.tar.bz2
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760)
https://bugs.python.org/issue33459 Automerge-Triggered-By: @matrixise
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index ee13c5f..73a2f27 100644
--- a/Doc/reference/expressions.rst
+++ b/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*
@@ -1822,7 +1821,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 |