python with braces pre-processor

Ant antroy at
Mon Oct 22 14:00:02 CEST 2007

On Oct 22, 10:58 am, Paul Brauner <paul.brau... at> wrote:
> I'll look at that. Thanks a lot !

I've just had a look, it's the 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
       print 'oops!'
   # end if
# end def foobar

The help in the script looks pretty good.


More information about the Python-list mailing list