Content-Length: 6468 | pFad | https://docs.python.org/2.2/ref/exprlists.html

5.12 Expression lists

 
5.12 Expression lists

 

expression_list  ::=  expression ( "," expression )* [","]
Download entire grammar as text.

An expression list containing at least one comma yields a tuple. The length of the tuple is the number of expressions in the list. The expressions are evaluated from left to right.  

The trailing comma is required only to create a single tuple (a.k.a. a singleton); it is optional in all other cases. A single expression without a trailing comma doesn't create a tuple, but rather yields the value of that expression. (To create an empty tuple, use an empty pair of parentheses: ().)  

See About this document... for information on suggesting changes.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://docs.python.org/2.2/ref/exprlists.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy