Lawrence D'Oliveiro <l...@geek-central.gen.new_zealand> wrote: >> The same goes for indentation. In python it's not possible to write >> a program to correctly indent code that isn't alaready correctly >> indented. > > The problem isnât that itâs âincorrectlyâ indented, itâs two > different pieces of code (correctly) indented according to two > different conventions, and how you reconcile them without introducing > logic errors into the code.
You use 'reindent.py' which a standard part of every Python release. Except that should shouldn't because it messes up the version history. > >> In a brace delimited language it's not possible to write a program to >> correctly place braces in an "incorrectly braced" program. > > But with braces itâs easy enough to reconcile different indentation > conventions without introducing logic errors into the code. > Except you shouldn't for the above mentioned reason. -- http://mail.python.org/mailman/listinfo/python-list