bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62031: 29.0.60; python-mode indentation after re.match


From: Dmitry Gutov
Subject: bug#62031: 29.0.60; python-mode indentation after re.match
Date: Thu, 9 Mar 2023 00:46:36 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 08/03/2023 15:23, Ruijie Yu via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote:
Lele Gaifax<lele@metapensiero.it>  writes:

[...]
     +    if re.match('^[a-c]+$', string):
     +        print('yes')
     +    else:
[...]
I think you might want to add a variation to this test, like this:

     from re import match
     if match(...): pass

I think this would be testing some different part of the logic (forward statement navigation?).

Anyway, if you see any problem with indentation (with that snippet or not), please report.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]