Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 5377:09597a423227 legacy-trunk
Oops, forgot one: inittab.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 29 Apr 1997 20:42:30 +0000 |
| parents | 424922afc1bb |
| children | b7871ca930ad |
comparison
equal
deleted
inserted
replaced
| 5376:9980faeeb7a5 | 5377:09597a423227 |
|---|---|
| 229 { | 229 { |
| 230 PyObject *list = PyList_New(0); | 230 PyObject *list = PyList_New(0); |
| 231 int i; | 231 int i; |
| 232 if (list == NULL) | 232 if (list == NULL) |
| 233 return NULL; | 233 return NULL; |
| 234 for (i = 0; inittab[i].name != NULL; i++) { | 234 for (i = 0; _PyImport_Inittab[i].name != NULL; i++) { |
| 235 PyObject *name = PyString_FromString(inittab[i].name); | 235 PyObject *name = PyString_FromString(_PyImport_Inittab[i].name); |
| 236 if (name == NULL) | 236 if (name == NULL) |
| 237 break; | 237 break; |
| 238 PyList_Append(list, name); | 238 PyList_Append(list, name); |
| 239 Py_DECREF(name); | 239 Py_DECREF(name); |
| 240 } | 240 } |
