Re: Whitespace not/required

2020-08-25 Thread Peter J. Holzer
On 2020-08-14 16:29:18 +1200, dn via Python-list wrote: > For f-strings/formatted string literals, the most usual form is: > > "{" f_expression ["="] ["!" conversion] [":" format_spec] "}" > > Remembering that this is BNF, see the space separating the closing-brace > from anything preceding i

Re: Whitespace not/required

2020-08-15 Thread dn via Python-list
On 15/08/2020 08:01, Dennis Lee Bieber wrote: On Fri, 14 Aug 2020 16:29:18 +1200, dn via Python-list declaimed the following: it is ignored by Python. (yes, this discussion disdains comments!) For example, whitespace is no problem when it comes to defining a list: month_names = ['Januari', '

Whitespace not/required

2020-08-13 Thread dn via Python-list
Although many new-comers are intrigued by the compulsory indentation rule, I have been surprised to discover that even though whitespace does not usually feature as a formatting-specification, nevertheless Python sometimes requires an absence of whitespace. Will this behavior/requirement conti