On 3/17/24 5:57 PM, Bruno Haible wrote:
> Yes, we can do that. In the commit today, however, I wanted to close one issue
> without possibly opening another one.

No worries, there is no rush.

> It is also worth testing various editors (gedit, kate, emacs, eclipse,
> PyCharm, etc.): Where do they put the cursor when you have the cursor here:
> 
>      '''This is a Python comment.█
>
> and press Enter?

I primarily use emacs and sometimes vim. I don't have the others
installed, but someone else can test them if they wish.

Emacs and vim both agree at least.

def test_emacs(value):
    '''This is a Python comment.
    Here1'''

def test_vim(value):
    '''This is a Python comment.
    Here2'''

Another thing too, from PEP 257:

> For consistency, always use """triple double quotes""" around
> docstrings. Use r"""raw triple double quotes""" if you use any
> backslashes in your docstrings. For Unicode docstrings, use
> u"""Unicode triple-quoted strings""".

Since we have agreed upon single quotes for actual code, maybe the
double quotes will help differentiate docstrings? Just an idea. Also,
the quoting doesn't affect that test for me. Maybe other editors have
strange rules for that. :)

Collin

Reply via email to