[Python-ideas] Simplifying .format() based string interpolation

Terry Reedy tjreedy at udel.edu
Fri Feb 7 05:09:20 CET 2014


On 2/6/2014 8:46 PM, Chris Angelico wrote:

> Technically there's no "list literal" syntax, only a convenient form
> for constructing a list at run-time.

There is literally no 'list literal' syntax. Number, string, and byte 
literals are discussed under Lexical Analysis in
http://docs.python.org/3/reference/lexical_analysis.html#literals

List, set, and dict displays are discussed under Expressions in
http://docs.python.org/3/reference/expressions.html#displays-for-lists-sets-and-dictionaries
and tuples in
http://docs.python.org/3/reference/expressions.html#expression-lists

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list