python with braces pre-processor

Paul Brauner paul.brauner at loria.fr
Mon Oct 22 08:34:35 EDT 2007


Le Mon, 22 Oct 2007 05:00:02 -0700, Ant a écrit :

> 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.

Thanks,

actually i'm using it right now as a backend and it's helpful.




More information about the Python-list mailing list