[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way
From: |
Fabián Ezequiel Gallina |
Subject: |
bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way that annoys "flake8" |
Date: |
Sat, 15 Nov 2014 19:17:23 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Hello Eric,
Note that inline comments are pretty much discouraged[0].
Leaving that aside, the problem is that inline comments should fit in
their own line. In the example you provided, you are trying to make an
inline comment that's too large to fit the line and in that case the
recommendation would be to turn it into a normal comment just before the
statement.
So, surprisingly, it seems in this case both flake8 and python.el are
right :)
[0] https://www.python.org/dev/peps/pep-0008#inline-comments
Thanks,
Fabián
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#18819: 24.3.93; python-mode: fill-paragraph breaks comments in a way that annoys "flake8",
Fabián Ezequiel Gallina <=