​​
On Mon, Jun 1, 2015 at 3:47 AM, <[email protected]> wrote:

> How about string quotes, especially for doc strings?
>
> PEP8 states:
>
> For triple-quoted strings, always use double quote characters to be
>> consistent with the docstring convention in PEP 257
>> <http://legacy.python.org/dev/peps/pep-0257>.
>>
>
​The beautifier does only those things which are clearly uncontroversial.
Imo, this means leaving *all *strings, including all flavors of docstrings,
exactly as they are.  The beautifier does not even strip blanks from
otherwise empty lines, on the theory that such lines might affect doctests.

As a result, you can use whatever docstrings you want, and the beautifier
will never change your choices. This is the essence of the  "sweet spot"
idea.

Suppose, otoh, that the beautifier *did *alter docstrings.  Now we would
have to have @bool tidy-* settings telling how to do this.  Worse, we would
also have to have an earnest discussion about what the defaults for those
settings should be.

My strong preference is for single quotes. Yes, LeoPyRef.leo could use that
setting, and the default could be something else.  But all this is just
mental overhead, to say nothing about actually implementing the options.

Instead, just change ''' to """ as you like.  How hard is that?

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to