5.2.4 List displays

A list display is a possibly empty series of expressions enclosed in square brackets:

list_display:   "[" [expression_list] "]"

A list display yields a new list object. If it has no expression list, the list object has no items. Otherwise, the elements of the expression list are evaluated from left to right and inserted in the list object in that order.


Send comments on this document to python-docs@python.org.


Banner.Novgorod.Ru