[Python-Dev] less quick patch for better debugging.

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Nov 26 19:26:08 EST 2003

Hunter Peress <hunterp at fastmail.fm>:

> a[1] +  b[2] + c[3]...currently gives an error message that doesnt say
> which variable the list index error occurs in or at which index it occurs
> at

This would be considerably improved if the error message could
just point out the position in the line instead of just the line

Especially when a statement spans more than one line -- currently
you can't even tell which line of a multi-line statement was the

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

More information about the Python-Dev mailing list