Message76618
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. |
|
Date |
User |
Action |
Args |
2008-11-29 18:25:25 | rhettinger | set | recipients:
+ rhettinger, CWRU_Researcher1 |
2008-11-29 18:25:25 | rhettinger | set | messageid: <1227983125.16.0.170235936275.issue4463@psf.upfronthosting.co.za> |
2008-11-29 18:25:24 | rhettinger | link | issue4463 messages |
2008-11-29 18:25:24 | rhettinger | create | |
|