Question about indentation and bugs

Emile van Sebille emile at fenx.com
Fri Aug 24 01:15:51 EDT 2001


"Peter Hansen" <peter at engcorp.com> wrote in message
news:3B85E13D.72427622 at engcorp.com...
> Dave Swegen wrote:
<snip>
> > So my question (or rather questions) is this: In practice, how often do
> > such problems crop up?  How does one go about avoiding such problems? Is
> > there any way at all to make explicit where a block ends?
>
> *In practice*, this is rare enough to be acceptable.  Proper
> education of programmers using Python makes its occurrence
> effectively negligible.  It does happen that somebody tries
> to edit some code with an editor which displays tabs as
> four characters (a Very Bad Thing), but this is usually
> caught quite quickly and fixed.

Somewhere early on I missed this point.  I caught it some time later and now
used an editor that interprets a tab as four spaces.  In practice now I get
caught mostly by dropping the colon and doing test with a single equals
sign.

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list