Lines Matching defs:obj
1287 _channel_send(_channels *channels, int64_t id, PyObject *obj)
1314 if (_PyObject_GetCrossInterpreterData(obj, data) != 0) {
1356 PyObject *obj = _PyCrossInterpreterData_NewObject(data);
1359 if (obj == NULL) {
1363 return obj;
1714 _channelid_shared(PyObject *obj, _PyCrossInterpreterData *data)
1720 xid->id = ((channelid *)obj)->id;
1721 xid->end = ((channelid *)obj)->end;
1722 xid->resolve = ((channelid *)obj)->resolve;
1725 Py_INCREF(obj);
1726 data->obj = obj;
2205 static char *kwlist[] = {"obj", NULL};
2206 PyObject *obj;
2208 "O:is_shareable", kwlist, &obj)) {
2212 if (_PyObject_CheckCrossInterpreterData(obj) == 0) {
2220 "is_shareable(obj) -> bool\n\
2403 static char *kwlist[] = {"cid", "obj", NULL};
2405 PyObject *obj;
2407 channel_id_converter, &cid, &obj)) {
2411 if (_channel_send(&_globals.channels, cid, obj) != 0) {
2418 "channel_send(cid, obj)\n\
2434 PyObject *obj = _channel_recv(&_globals.channels, cid);
2435 if (obj != NULL) {
2437 return obj;
2450 "channel_recv(cid, [default]) -> obj\n\