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*
| ``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 |