[Python-checkins] bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760)
Miss Islington (bot)
webhook-mailer at python.org
Wed Sep 11 09:16:15 EDT 2019
https://github.com/python/cpython/commit/dc269971091710563a0d730a0d4b084901826c15
commit: dc269971091710563a0d730a0d4b084901826c15
branch: master
author: Andre Delfino <adelfino at gmail.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2019-09-11T06:16:11-07:00
summary:
bpo-33459: Fix "tuple displays" term in Expressions.rst (GH-6760)
https://bugs.python.org/issue33459
Automerge-Triggered-By: @matrixise
files:
M Doc/reference/expressions.rst
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index ee13c5f4c6fc..73a2f271ca54 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 |
More information about the Python-checkins
mailing list