Preserving program structure
David Dawkins
david_j_dawkins at spamless.hotmail.com
Thu Dec 13 22:09:40 EST 2001
So I'm using IDLE, and Alt-F5 tells me I have a problem with
indentation.
It seems I had (inadvertently) mixed tab and space characters.
No amount of "tabbifying" and "untabbifying" resolved the issue,
so I had to shift *everything* to the left-margin, and re-create
the indentation with a consistent scheme (8 space hard tabs).
While doing so, I stuffed up a lot of the program logic, because
it wasn't always obvious which block a particular statement
belonged in. This dismayed me intensely.
How do experienced Python programmers avoid this problem?
I don't see much code out there with comments like "# endif", etc.
David
--
david_j_dawkins /*AT*/ hotmail.com
More information about the Python-list
mailing list