Raymond Hettinger <[EMAIL PROTECTED]> added the comment:
Python/codecs.c line 144-147:
func = PyList_GetItem(interp->codec_search_path, i);
if (func == NULL)
goto onError;
result = PyEval_CallObject(func, args);
The "func" result is expected to be a callable,
New submission from Brian Szuter <[EMAIL PROTECTED]>:
Python-2.5.2/Python/codecs.c(_PyCodec_Lookup)
Lines 106, 144
PyString_Check() is not called on the result of PyList_GetItem() and the
first parameter of PyList_GetItem() does not have PyList_Check() called
on it.
(See Python-2.5.2/Python/trac