On 2020-09-27, Chris Angelico <ros...@gmail.com> wrote:
> Or maybe Emacs *isn't* breaking it, and it's just an autoindentation
> thing. I don't know.

>From the discussion I read about this feature, it considers that 'pass' is
use to write an empty def()

def();
        pass

So it's logic for it to indent one level up after a 'pass' because the people
who made it did not see any other usage to 'pass' than that.

if True:
        pass
        print("It's true")

The 'pass' is totally useless by itself, it can be replaced by a comment.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to