[Python-ideas] Suggestion: Integrate the script "pindent.py" as standard command for formatting pyhton code
Jim Jewett
jimjjewett at gmail.com
Thu May 26 15:45:51 CEST 2011
On Thu, May 26, 2011 at 7:15 AM, Serge Hulne <serge.hulne at gmail.com> wrote:
> Actually these are "fake" bloc delimiters (in the shape of comments, see
> example in the original post).
They are inherently bad, because they are extra noise. The question
is whether they add enough value to make up for that.
> A copy / paste went bad (e.g. the last line of a for bloc has been "pasted
> at the wrong indentation level").
For me, it is usually either the entire bloc, or just the first line
that is wrong.
> A source file lost all indentation when been mailed because, say, the tabs
> have been stripped
> etc...
This has been an annoyance on the python lists lately; I'm not sure
why, but a lot of the recent code has come through (at least on my
gmail account) without indentation at all.
The catch is, I have usually been able to figure out where the
indents/dedents should go; if I can't, it is a sign that the function
is too long. And these extra comments only make the functions
longer...
-jJ
More information about the Python-ideas
mailing list