Lines Matching defs:name
309 .name = "_thread.lock",
592 .name = "_thread.RLock",
692 .name = "_thread._localdummy",
938 local_setattro(localobject *self, PyObject *name, PyObject *v)
948 int r = PyObject_RichCompareBool(name, &_Py_ID(__dict__), Py_EQ);
955 Py_TYPE(self)->tp_name, name);
959 return _PyObject_GenericSetAttrWithDict((PyObject *)self, name, v, ldict);
982 .name = "_thread._local",
990 local_getattro(localobject *self, PyObject *name)
999 int r = PyObject_RichCompareBool(name, &_Py_ID(__dict__), Py_EQ);
1009 return _PyObject_GenericGetAttrWithDict((PyObject *)self, name,
1014 PyObject *value = PyDict_GetItemWithError(ldict, name);
1024 (PyObject *)self, name, ldict, 0);
1413 /* print(f"Exception in thread {thread.name}:", file=file) */
1418 PyObject *name = NULL;
1420 if (_PyObject_LookupAttr(thread, &_Py_ID(name), &name) < 0) {
1424 if (name != NULL) {
1425 if (PyFile_WriteObject(name, file, Py_PRINT_RAW) < 0) {
1426 Py_DECREF(name);
1429 Py_DECREF(name);
1444 if (PyFile_WriteString("<failed to get thread name>", file) < 0) {
1482 .name = "_thread._ExceptHookArgs",