What is a function parameter =[] for?

Chris Angelico rosuav at gmail.com
Tue Nov 24 17:09:27 EST 2015


On Wed, Nov 25, 2015 at 6:00 AM, Random832 <random832 at fastmail.com> wrote:
> 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.

Can you link to that, please? Maybe there's something that can be
improved. (Or maybe not.)

ChrisA



More information about the Python-list mailing list