Non-Indented python

Magnus Lie Hetland mlh at idi.ntnu.no
Mon Nov 12 20:39:41 CET 2001


"Skip Montanaro" <montanaro at tttech.com> wrote in message
news:mailman.1005148279.5189.python-list at python.org...
>
>     Samuel> I figure it should be quite simple to implement a program
>     Samuel> that translates scripts where blocks are expressed by
>     Samuel> traditionnal block markers like '{' and '}' (or whatever
>     Samuel> else..) into a well indented python script.
>
>     Samuel> Is there such a program ??
>
> Yes, there is, and it's delivered with Python!  It's Tools/scripts/
> pindent.py in the standard distribution.  It only needs a block end
> delimiter (# end).  You already have ":" as the opener...

It messes up multiline strings, though. (or, rather -- it messes up the
indentation in multiline strings.)

> guido's-time-machine-strikes-again-ly, y'rs,

--
Magnus Lie Hetland                           The Anygui Project
http://hetland.org                           http://anygui.sf.net






More information about the Python-list mailing list