Re:Black: An uncompromising Python code formatter
by stevesimmons on Friday May 25, 2018 @08:11PM
(#17159231)
I prefer a quoting convention of single quotes for text identifiers (as they rarely contain quotes) and double quotes for English text (because contractions are common). Thus:
[ Parent
| on HN ]
Re:Black: An uncompromising Python code formatter
by gvx on Friday May 25, 2018 @09:05PM
(#17159471)
I generally follow this convention:
1. Any string literal that contains either ' xor " will be delimited by the other one. 2. For all other string literals, delimit by " if it's meant for human eyes only, delimit by ' if it's meant for computers as well.