Strings: double versus single quotes
Manfred Lotz
ml_news at posteo.de
Sat May 23 00:12:53 EDT 2020
On Sat, 23 May 2020 09:36:13 +1200
DL Neil <PythonList at DancesWithMice.info> wrote:
> >>> I am asking myself if I should preferably use single or double
> >>> quotes for strings?
> ...
>
> > I agree to the following:
> >
> > 1. Consistency is important.
> > 2. Single quotes are less noisy.
> > 3. Triple double quotes are to be preferred over triple single
> > quotes.
> ...
>
> > Of course, this is my subjective result, and others (may) have
> > different opinions.
>
> 4. unless a specific objective of a re-factoring exercise, maintain
> the conventions used within the code.
>
> 5, adhere to the conventions/standards/requirements of the dev.team
> or organisation.
>
Yes, agree.
--
Manfred
More information about the Python-list
mailing list