In python, single quotes or double quotes?

2 years ago by l_b_i to c/furprogs

savvywolf 7 points 2 years ago

Double quotes always. Any style guide that says otherwise is wrong. :C

path: 0 13922431, hotness: undefined, score: 7, children: 1
l_b_i 2 points 2 years ago path: 0 13922431 13925592, hotness: undefined, score: 2, children: 0
colourlesspony 4 points 2 years ago

I had a look at the python style guide and it is up to the user to pick one. I use double quotes because that what I learned and never felt the need to change it.

path: 0 13920569, hotness: undefined, score: 4, children: 1
l_b_i 2 points 2 years ago

I'm in the habit of single quotes. Don't really know where it came from, but it also doesn't require shift, so I'm going to say its easier. It really messes me up when I switch to C.

path: 0 13920569 13920927, hotness: undefined, score: 2, children: 0
furprogs

@pawb.social

login for more options
437
38
1

English-language general programmers community

Please treat pawb.social’s rules as though they were the rules of this community, even if you’re posting from another instance!

go to feed...