Lines Matching defs:name
64 _PySys_GetAttr(PyThreadState *tstate, PyObject *name)
74 PyObject *value = _PyDict_GetItemWithError(sd, name);
80 _PySys_GetObject(PyInterpreterState *interp, const char *name)
86 return _PyDict_GetItemStringWithError(sysdict, name);
90 PySys_GetObject(const char *name)
96 PyObject *value = _PySys_GetObject(tstate->interp, name);
131 sys_set_object_str(PyInterpreterState *interp, const char *name, PyObject *v)
133 PyObject *key = v ? PyUnicode_InternFromString(name)
134 : PyUnicode_FromString(name);
141 PySys_SetObject(const char *name, PyObject *v)
144 return sys_set_object_str(interp, name, v);
1232 "asyncgen_hooks", /* name */
1344 {"algorithm", "name of the algorithm for hashing of str, bytes and "
1380 PyUnicode_FromString(hashfunc->name));
1429 "sys.getwindowsversion", /* name */
1434 via indexing, the rest are name only */
2050 for (Py_ssize_t i = 0; PyImport_Inittab[i].name != NULL; i++) {
2051 PyObject *name = PyUnicode_FromString(PyImport_Inittab[i].name);
2052 if (name == NULL) {
2055 if (PyList_Append(list, name) < 0) {
2056 Py_DECREF(name);
2059 Py_DECREF(name);
2084 PyObject *name = PyUnicode_FromString(_Py_stdlib_module_names[i]);
2085 if (name == NULL) {
2089 PyTuple_SET_ITEM(names, i, name);
2352 PyObject *name = NULL, *value = NULL;
2362 name = PyUnicode_FromWideChar(s, -1);
2367 name = PyUnicode_FromWideChar(s, name_end - s);
2370 if (name == NULL || value == NULL) {
2373 if (PyDict_SetItem(opts, name, value) < 0) {
2376 Py_DECREF(name);
2381 Py_XDECREF(name);
2538 "sys.flags", /* name */
2622 "sys.version_info", /* name */
2701 res = PyDict_SetItemString(impl_info, "name", value);
2765 "sys._emscripten_info", /* name */
3017 PyObject *name, *value;
3021 name = PyUnicode_FromWideChar(s, -1);
3026 name = PyUnicode_FromWideChar(s, name_end - s);
3029 if (name == NULL || value == NULL) {
3032 if (PyDict_SetItem(opts, name, value) < 0) {
3035 Py_DECREF(name);
3040 Py_XDECREF(name);