Python Error Messages

Fredrik Lundh fredrik at pythonware.com
Fri Sep 10 02:54:32 EDT 1999


jonathon <jblake at stamp-coin.com> wrote:
> For the curious the other obnoxious error is:
> "IndexError: string index out of range"
> 
> Obnoxious, because:
> A) It is supposed to be looking at a list, not a string.
> B) The actual error is several hundred lines from where
>        the message occurs.

you have a broken C extension.  check for C functions
that ignore exceptions returned by library functions. if
you ignore exceptions on purpose, make sure to call
PyErr_Clear() before you return to Python.

</F>





More information about the Python-list mailing list