Is there an easy way to control indents in Python

Ian Kelly ian.g.kelly at gmail.com
Tue Oct 21 19:09:11 CEST 2014


On Tue, Oct 21, 2014 at 2:45 AM, Simon Kennedy <sffjunkie at gmail.com> wrote:
> On Monday, 20 October 2014 18:56:05 UTC+1, Ian  wrote:
>> Rather, I'm saying that where the blank line is should be the start of
>> a new function. There would still be a blank line, just no longer
>> inside the function.
>>
>> Now, maybe you think there should be more blank lines in the above, in
>> which case we'll just have to disagree on that point.
>
> Why did you separate the above 2 sequences of thoughts by a blank line? Is the inherent pause in the communication of your thoughts not also applicable to your code?
>
> Where we see the pause between thoughts appears to be in a different place. I see them both within the function and between the functions and I assume you see them between the functions only.

That makes sense. I see two distinct thoughts in the function that I
posted: "build the graph" and "search the graph". The blank line
separates them. By my view, a function should represent a single,
complete thought. Thus, the function should be broken up at the blank
line.



More information about the Python-list mailing list