Lines Matching refs:id
11 int64_t id;
15 newinterpid(PyTypeObject *cls, int64_t id, int force)
17 PyInterpreterState *interp = _PyInterpreterState_LookUpID(id);
40 self->id = id;
48 int64_t id;
50 id = ((interpid *)arg)->id;
53 id = PyLong_AsLongLong(arg);
54 if (id == -1 && PyErr_Occurred()) {
57 if (id < 0) {
69 *(int64_t *)ptr = id;
76 static char *kwlist[] = {"id", "force", NULL};
77 int64_t id;
81 interp_id_converter, &id, &force)) {
85 return (PyObject *)newinterpid(cls, id, force);
91 int64_t id = ((interpid *)v)->id;
92 PyInterpreterState *interp = _PyInterpreterState_LookUpID(id);
108 interpid *id = (interpid *)self;
109 return PyUnicode_FromFormat("%s(%" PRId64 ")", name, id->id);
115 interpid *id = (interpid *)self;
116 return PyUnicode_FromFormat("%" PRId64 "", id->id);
122 interpid *id = (interpid *)self;
123 return PyLong_FromLongLong(id->id);
169 interpid *id = (interpid *)self;
170 PyObject *obj = PyLong_FromLongLong(id->id);
190 interpid *id = (interpid *)self;
194 equal = (id->id == otherid->id);
203 equal = !overflow && (otherid >= 0) && (id->id == otherid);
206 PyObject *pyid = PyLong_FromLongLong(id->id);
268 PyObject *_PyInterpreterID_New(int64_t id)
270 return (PyObject *)newinterpid(&_PyInterpreterID_Type, id, 0);
279 int64_t id = PyInterpreterState_GetID(interp);
280 if (id < 0) {
283 return (PyObject *)newinterpid(&_PyInterpreterID_Type, id, 0);
289 int64_t id;
290 if (!interp_id_converter(requested_id, &id)) {
293 return _PyInterpreterState_LookUpID(id);