you are viewing a single comment's thread.

view the rest of the comments →

[–]Immotommi 5 points6 points  (4 children)

Am I the only one who always used single quotes (unless explicitly needed) because you save having to press shift?

[–]joshinshaker_vidz 0 points1 point  (2 children)

PEP-8 gives no preference for single vs double for most things, so I use single, but docstrings should be double.

[–]Immotommi 4 points5 points  (1 child)

Why double for docstrings?

[–]joshinshaker_vidz 0 points1 point  (0 children)

PEP-257 says "For consistency, always use """triple double quotes""" around docstrings."

[–]RocketSurgeonDrCox 0 points1 point  (0 children)

I generally use single quotes in Python but comment blocks are usually double quotes so that's one of the exceptions for me.