Debugging (was Re: Why not allow empty code blocks?)

Chris Angelico rosuav at gmail.com
Sun Jul 31 15:03:22 EDT 2016


On Mon, Aug 1, 2016 at 4:58 AM, Terry Reedy <tjreedy at udel.edu> wrote:
>
> As for the original topic: Guido judged that a uniform rule "Compound
> statement headers end with ':' and the next line has an additional indent"
> would make correct code easier to write and parse and make it visually more
> obvious.  Some Python aware editors like IDLE automatically add the indent.

Quite a few editors do, and even when that doesn't come into play (eg
if you type code in piecemeal and don't take advantage of "press
enter, indent automatically"), it's easy to say "Check line seventeen
- remember, after a colon, you indent". It's a great policy.

ChrisA



More information about the Python-list mailing list