Oh, and one more thing (and this applies to scintilla & scite, too): I'm working on windows, so every newline in a python source is \r\n ["CRLF" if you turn on "View\End of line"]. Every now and then a LF gets lost when editing in Pythonwin, so the line ends in CR, and python complains about invalid line syntax.