Apparently there is an old gem lurking in every Python installation
no one ever told me about called pindent.py .
pindent.py converts to and from normal Python code and
"block delimited style" with stuff like "end if"'s just the
way SJS likes.
e.g.
def foobar(a, b):
if a == b:
a = a+1
elif a < b:
b = b-1
if b > a: a = a-1
end if
else:
print 'oops!'
# end if
# end def foobar
Notice the last 2 lines denoting the close of the blocks.
Now everyone can be happy. Yay!
Chris
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg