python with braces pre-processor
Ant
antroy at gmail.com
Mon Oct 22 08:00:02 EDT 2007
On Oct 22, 10:58 am, Paul Brauner <paul.brau... at loria.fr> wrote:
> I'll look at that. Thanks a lot !
I've just had a look, it's the pindent.py script in Tools/Scripts (at
least it is on Windows). It takes code of the following form:
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
The help in the script looks pretty good.
--
Ant...
More information about the Python-list
mailing list