alternatives to making blocks like { } or other ??

Grant Edwards grante at visi.com
Wed May 19 12:38:13 EDT 2004


On 2004-05-19, Williams, Timothy J Mr RDECOM CERDEC NVESD <timothy.williams at nvl.army.mil> wrote:

> Here again indentation doesn't matter. A smart editor could do a
> "pretty-print" for you using the braces. I agree that *visually* indentation
> w/o the braces are nice, but as a check for having code in the right logical
> block, it's just too easy have a stray extra or missing space (for me
> anyway) that would throw everything off. Isn't just one space needed in
> Python to signify a different block?

Yes, but an accidental extra space or deleted space _usually_
causes a syntax error.

-- 
Grant Edwards                   grante             Yow!  I think I'll make
                                  at               SCRAMBLED EGGS!! They're
                               visi.com            each in LITTLE SHELLS...



More information about the Python-list mailing list