5 ms·
--single-quoted-strings would be a really nice option for the vast majority of python programmers that use single quotes by default.
by epr 8y ago
--single-quoted-strings would be a really nice option for the vast majority of python programmers that use single quotes by default.
- mjkunc 8y agothis is the only issue stopping my team from adopting black.
- prawl 8y agoThis isn't a vast majority by any stretch of the imagination.
- jhall1468 8y agoThe overwhelming response here saying use single quotes begs to differ.
- ambivalence 8y agoThat's not how this works. All the people who are just happy or indifferent about double quotes don't comment about it. And some of the ones that aren't happy about it commented here multiple times. Judging from the additional stars on GitHub, and projects that just migrated (pytest!), I'd say there's a very vocal minority which is very attached to single quotes.
- pkilgore 8y agoSelection bias is real here. I thought dbl quotes smart for all the reasons in the readme. Me commenting 'this is great' is just noise on HN, and discouraged by the rules. Never take self-selected anything as truth, especially comments (tweets/posts/voluntary votes)
- aldanor 8y agoThis is all subjective unless some data is collected. I could say with just as much confidence that all of the major Python projects I've seen or contributed to use single quotes -- e.g. numpy or pandas.
- jhall1468 8y ago> Judging from the additional stars on GitHub, and projects that just migrated (pytest!), I'd say there's a very vocal minority which is very attached to single quotes. Accuse me of selection bias. Immediately use even more biased selection bias.
- aldanor 8y agoDitto, no single quoted strings -- not even going to consider it no matter how brilliant it (potentially) is.