This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients CWRU_Researcher1, rhettinger
Date 2008-11-29.18:25:24
SpamBayes Score 0.010429505
Marked as misclassified No
Message-id <1227983125.16.0.170235936275.issue4463@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-11-29 18:25:25rhettingersetrecipients: + rhettinger, CWRU_Researcher1
2008-11-29 18:25:25rhettingersetmessageid: <1227983125.16.0.170235936275.issue4463@psf.upfronthosting.co.za>
2008-11-29 18:25:24rhettingerlinkissue4463 messages
2008-11-29 18:25:24rhettingercreate