Why on Earth the interpreter does not interpret SyntaxError every time I do this:
my_abc = ['a',
'b',
'c'
'd',]
I just wanted to add 'c' to the list of lines and forgot to add a comma. I would expect this to cause some kind of error, as it is fuzzy.
Instead, I got:
>>> my_abc
['a', 'b', 'cd']
And this is never what I want.
Why does it automatically concatenate? I cannot count how many times I have been bitten by this behavior. Is there anything I can do about this?
Just to clarify * . Actually, I am not against auto-concatenation, my problem should be performed ONLY with line lists, because they often do much more than just wrap text, they are used to control the flow, to transfer field names and many other things.