Raymond Hettinger <[EMAIL PROTECTED]> added the comment: PyObject *hook = PyList_GetItem(meta_path, i); loader = PyObject_CallMethod(hook, "find_module", "sO", fullname, path != NULL ? path : Py_None);
The "hook" pointer is checked for NULL in PyObject_CallMethod() -- see line 1947 in Objects/abstract.c. The hook is a general object (hopefully with a find_module() method), not a string. ---------- nosy: +rhettinger resolution: -> invalid status: open -> closed _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4462> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com