Style question...

Anthony Roberts anthonyr-at-hotmail-dot-com at nospam.com
Thu Aug 28 03:50:52 CEST 2003


> Hi. I tried to do something like that too, early on. (I recall being
> frustrated to find I couldn't just alias "end = pass", and use 'end' as a
> block delimiter... heh). I didn't actually want to use 'end' (I like
> significant whitespace), I just saw a lot of posts with complaints about
> "no-block-delimiter", and I thought, I wonder if you can make one. Well,
you
> can (of course), but not like that.
>
> Anyway. I think the suggested idiom for people who must have a visible
block
> delimiter is "# end <keyword>". If you use this, I think emacs can "figure
> it out" (I don't know, I don't use emacs, but I think pymode can handle
> this), and you can also use Tools/scripts/pindent.py, if you like.

My emacs can't handle it... I think I'm going to subject myself to a bit
more of the Python way to see if I change my mind.






More information about the Python-list mailing list