Style question...

John Roth newsgroups at jhrothjr.com
Wed Aug 27 21:46:58 EDT 2003


"Anthony Roberts" <anthonyr-at-hotmail-dot-com at nospam.com> wrote in message
news:Uva3b.49430$la.826046 at news1.calgary.shaw.ca...
> If I end indentation levels with "pass" statements, will I piss off people
> that have to read my code? eg:
>
> for i in xrange(0,5):
>     if i:
>         print i
>         pass
>     print i * -1
>     pass
>
> I ask for two reasons... a) it helps emacs figure it out, and b) I'm more
> comfortable ending compound statements with a token.

Isn't there some kind of emacs plugin, macro or mode that
handles Python? I'm not an emacs person, but I've heard that
there is, and I would expect that it would handle things like
auto-indent for you.

John Roth
>
>






More information about the Python-list mailing list