Lines Matching defs:name
1356 const char *name = p[0];
1359 PySys_WriteStderr("# restore sys.%s\n", name);
1369 if (PyDict_SetItemString(interp->sysdict, name, value) < 0) {
1384 #define STORE_MODULE_WEAKREF(name, mod) \
1388 PyObject *tup = PyTuple_Pack(2, name, wr); \
1400 #define CLEAR_MODULE(name, mod) \
1402 if (verbose && PyUnicode_Check(name)) { \
1403 PySys_FormatStderr("# cleanup[2] removing %U\n", name); \
1405 STORE_MODULE_WEAKREF(name, mod); \
1406 if (PyObject_SetItem(modules, name, Py_None) < 0) { \
1485 PyObject *name = PyTuple_GET_ITEM(tup, 0);
1496 if (verbose && PyUnicode_Check(name)) {
1497 PySys_FormatStderr("# cleanup[3] wiping %U\n", name);
1546 // We prepare a list which will receive (name, weakref) tuples of
1547 // modules when they are removed from sys.modules. The name is used
2218 int fd, int write_mode, const char* name,
2267 text = PyUnicode_FromString(name);
2268 if (text == NULL || PyObject_SetAttr(raw, &_Py_ID(name), text) < 0)
2685 // Use the module name from the sys.modules key,
2686 // don't attempt to get the module object name.