4 ms·
I'm not a full time Python dev so I won't (can't) get into what choice has more merits. But there is this: https://black.readthedocs.io/en/latest/the_black_cod
by j1elo 5y ago
I'm not a full time Python dev so I won't (can't) get into what choice has more merits. But there is this:
https://black.readthedocs.io/en/latest/the_black_code_style/current_style.html#strings https://black.readthedocs.io/en/latest/the_black_code_style/...
Seen from outside, I think the double quotes are just the natural form of strings in lots of other places, at least in those that come from the same family than C (C++, Java, C#, Rust, just to name a few)
Also Prettier.js (which I'd call the "Black of JavaScript") also settled on double quotes. So we're left with a de facto consensus across programming languages as a whole, which kind of feels nice.