re: What do you dislike about your favorite language? VIEW POST

FULL DISCUSSION
 

In Python, if you write multiple strings adjacent to each other, Python concatenates them. For me, this often leads to annoying bugs like

l = [
    "A",
    "B"
    "C",
    "D"
]

print l
# prints ["A", "BC", "D"]
 

Ouch! Haha yeah I can see how that hide it self well!

 

You can thank ISO C for that one:

Not that python directly inherits the behavior, but they probably decided to go with that behavior based on how C does it.

code of conduct - report abuse