Non-Indented python
Skip Montanaro
montanaro at tttech.com
Wed Nov 7 10:50:12 EST 2001
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...
guido's-time-machine-strikes-again-ly, y'rs,
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list