[Tutor] creating and writing to a text file

Cameron Simpson cs at cskk.id.au
Mon Mar 29 19:14:32 EDT 2021


On 29Mar2021 16:48, boB Stepp <robertvstepp at gmail.com> wrote:
>On 21/03/29 07:27PM, Phil wrote:
>>I've never been sure when to use single or double quotes. Black 
>>confirms that double quotes is the correct option in this case.
>
>Just to clear up any possible confusion Black is designed to prefer double
>quotes over single quotes in every situation unless that is not possible to
>do.  Just because Black double quotes something does *not* mean that is the
>correct way to use quotes!

And to add to this, black's obsession with replacing my nice clean ''' 
with horrible noisy """ is, alone, reason for me to refuse to use it.

Again, Heuer's Razor:

    If it can't be turned off, it's not a feature. - Karl Heuer

Black is for people who want consistent formatting (it certainly eases 
diff churn etc once the formatting is done) but _don't_ care about 
style.

I remain a big fan of yapf, and use it by default.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list