Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Python/import.c lines: 1078-1082:
for (j = 0; j < nhooks; j++) { PyObject *hook = PyList_GetItem(path_hooks, j); if (hook == NULL) return NULL; importer = PyObject_CallFunctionObjArgs(hook, p, NULL); The "hook" object is supposed to be a callable, not a string. The code for PyList_GetItem() does its own argument checking. ---------- nosy: +rhettinger resolution: -> invalid status: open -> closed _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4463> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com