On Jul 17, 8:49 am, Thomas Boell <tbo...@domain.invalid> wrote: > But why do you enumerate with start=1? Shouldn't you start with index 0?
The problem specification says that the the char number should match the emacs goto-char function which is indexed from one, not from zero. This is testable by taking the output of the program and running it through emacs to see that the cursor gets moved exactly to the location of the mismatched delimiter. Raymond -- http://mail.python.org/mailman/listinfo/python-list