What is a function parameter =[] for?

Random832 random832 at fastmail.com
Tue Nov 24 14:00:40 EST 2015


On 2015-11-24, Chris Angelico <rosuav at gmail.com> wrote:
> Probably the grammar. In other words, it's part of the language's very
> definition.

Then the definition is wrong. I think "literal" is a word whose meaning is
generally agreed on, rather than something each language's spec can invent from
whole cloth for itself. It's not a python term, it's a programming term.

And the documentation doesn't even use it consistently; it calls {} a literal.




More information about the Python-list mailing list