Lists And Missing Commas

DL Neil PythonList at DancesWithMice.info
Tue Dec 24 00:46:34 EST 2019


On 24/12/19 5:20 PM, Tim Daneliuk wrote:
> On 12/23/19 7:52 PM, DL Neil wrote:
>>
>> WebRef: https://docs.python.org/3/reference/lexical_analysis.html
> 
> 
> Yep, that explains it, but it still feels non-regular to me.  From a pointy headed academic
> POV, I'd like to see behavior consistent across types. Again ... what do I know?


I thought it was 'the boss' who has the "pointy head'? (so that any 
'difficult' idea will not land, but simply slide-off to one side or the 
other?)

It is an interesting lateral-thinking enquiry, and we should not simply 
accept 'stuff', but question how it best works/we can best use it.


That said, on the surface, I might agree.

Venturing into compiler-writing/lexical analysis, and comparing with 
other languages, we rapidly realise that it is 'odd' (or special).


However, keep reading (the above web.ref) and find the section where 
"white space" is described. Combine that with the idea/nuisance-value of 
splitting long strings over multiple lines.

Rather than puzzling-over an 'only/special/weird concatenation' 
allowance, perhaps we should see a 'convenience factor'?
-- 
Regards =dn


More information about the Python-list mailing list