Python indentation deters newbies?

Skip Montanaro skip at pobox.com
Fri Aug 13 10:47:17 EDT 2004


    beliavsky> I wonder if there is a way to remove this initial
    beliavsky> barrier. Could an alternate source form be defined, so that
    beliavsky> there are matching if-endif and for-next constructs instead
    beliavsky> of significant indentation? 

Look at Tools/scripts/pindent.py in the standard distribution.  Run it as a
preprocessor over your code before running it.

Skip



More information about the Python-list mailing list