Compare source code

Terry Reedy tjreedy at
Thu Nov 4 22:04:55 CET 2010

On 11/4/2010 4:17 AM, Seebs wrote:

I am sorry you feel compelled to use a language you so dislike. Not our 
fault though.

> Other languages I use are mostly amenable to the development of tools
> to automatically indent code.  Makefiles and Python are the only two
> exceptions...

If you add the normally redundant information in the form of explicit 
dedents (anything starting with '#' and distinguishable from normal 
comments), then it is not too hard to re-indent even after all indents 
have been removed. I believe this has been dome more than once. By using 
a stylized comment, the augmented code runs without preprocessing. I 
also believe at lease one person has written a preprocessor for 

Terry Jan Reedy

More information about the Python-list mailing list