I'm working on a Python development project which spans multiple people. We are all working on Windows and using the PyWin IDE. Our code is revision controlled using Perforce. Already we had one instance where the logical structure of a file was destroyed because indentation levels were changed along the way. I can't tell if it was done because PyWin IDE was setup differently or because Perforce munged things on a merge...that doesn't really matter. It seems problematic to me to try to enforce tool standards on people (IDE and editor settings) which may or may not take.
My solution has been to require (as a coding standard) ending comments on control blocks longer than one line. At least this is something that could be caught at submit time with an automated review tool. I'd be interested in how anyone else has solved this problem...provided you've seen it. Thanks, Jeff P.S. An example of my solution would be: if some condition: do stuff and more stuff elif another condition: this is the elif clause with stuff to do else: and the else clause #endif some condition _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor