Home
last modified time | relevance | path

Searched refs:Py_XSETREF (Results 1 – 25 of 42) sorted by relevance

12

/third_party/python/Objects/
Dfuncobject.c157 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
188 Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); in PyFunction_SetKwDefaults()
220 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
282 Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); in PyFunction_SetAnnotations()
340 Py_XSETREF(op->func_code, value); in func_set_code()
362 Py_XSETREF(op->func_name, value); in func_set_name()
384 Py_XSETREF(op->func_qualname, value); in func_set_qualname()
424 Py_XSETREF(op->func_defaults, value); in func_set_defaults()
465 Py_XSETREF(op->func_kwdefaults, value); in func_set_kwdefaults()
494 Py_XSETREF(op->func_annotations, value); in func_set_annotations()
[all …]
Dexceptions.c73 Py_XSETREF(self->args, args); in BaseException_init()
209 Py_XSETREF(self->args, seq); in BaseException_set_args()
237 Py_XSETREF(self->traceback, tb); in BaseException_set_tb()
349 Py_XSETREF(base_self->cause, cause); in PyException_SetCause()
364 Py_XSETREF(_PyBaseExceptionObject_cast(self)->context, context); in PyException_SetContext()
586 Py_XSETREF(self->code, PyTuple_GET_ITEM(args, 0)); in SystemExit_init()
590 Py_XSETREF(self->code, args); in SystemExit_init()
661 Py_XSETREF(self->name, name); in ImportError_init()
664 Py_XSETREF(self->path, path); in ImportError_init()
670 Py_XSETREF(self->msg, msg); in ImportError_init()
[all …]
Ddescrobject.c1559 Py_XSETREF(prop->prop_name, name); in property_set_name()
1680 Py_XSETREF(((propertyobject *) new)->prop_name, pold->prop_name); in property_copy()
1738 Py_XSETREF(self->prop_get, fget); in property_init_impl()
1739 Py_XSETREF(self->prop_set, fset); in property_init_impl()
1740 Py_XSETREF(self->prop_del, fdel); in property_init_impl()
1741 Py_XSETREF(self->prop_doc, doc); in property_init_impl()
1742 Py_XSETREF(self->prop_name, NULL); in property_init_impl()
1755 Py_XSETREF(self->prop_doc, get_doc); in property_init_impl()
Dcellobject.c147 Py_XSETREF(op->ob_ref, obj); in cell_set_contents()
Dframeobject.c518 Py_XSETREF(f->f_trace, v); in frame_settrace()
1006 Py_XSETREF(values[j], value); in dict_to_map()
Dgenobject.c700 Py_XSETREF(op->gi_name, value); in gen_set_name()
722 Py_XSETREF(op->gi_qualname, value); in gen_set_qualname()
Dmoduleobject.c84 Py_XSETREF(mod->md_name, name); in module_init_dict()
/third_party/python/Modules/_sqlite/
Dconnection.c103 Py_XSETREF(self->row_factory, Py_None); in pysqlite_connection_init()
106 Py_XSETREF(self->text_factory, (PyObject*)&PyUnicode_Type); in pysqlite_connection_init()
173 Py_XSETREF(self->collations, PyDict_New()); in pysqlite_connection_init()
345 Py_XSETREF(((pysqlite_Cursor *)cursor)->row_factory, self->row_factory); in pysqlite_connection_cursor_impl()
1111 Py_XSETREF(self->function_pinboard_authorizer_cb, NULL); in pysqlite_connection_set_authorizer_impl()
1115 Py_XSETREF(self->function_pinboard_authorizer_cb, authorizer_cb); in pysqlite_connection_set_authorizer_impl()
1142 Py_XSETREF(self->function_pinboard_progress_handler, NULL); in pysqlite_connection_set_progress_handler_impl()
1146 Py_XSETREF(self->function_pinboard_progress_handler, progress_handler); in pysqlite_connection_set_progress_handler_impl()
1183 Py_XSETREF(self->function_pinboard_trace_callback, NULL); in pysqlite_connection_set_trace_callback_impl()
1191 Py_XSETREF(self->function_pinboard_trace_callback, trace_callback); in pysqlite_connection_set_trace_callback_impl()
[all …]
Dcursor.c51 Py_XSETREF(self->connection, connection); in pysqlite_cursor_init_impl()
57 Py_XSETREF(self->description, Py_None); in pysqlite_cursor_init_impl()
60 Py_XSETREF(self->lastrowid, Py_None); in pysqlite_cursor_init_impl()
69 Py_XSETREF(self->row_factory, Py_None); in pysqlite_cursor_init_impl()
165 Py_XSETREF(self->row_cast_map, PyList_New(0)); in pysqlite_build_row_cast_map()
500 Py_XSETREF(self->statement, in _pysqlite_query_execute()
/third_party/python/Modules/
D_elementtree.c432 Py_XSETREF(self_elem->tag, tag); in element_init()
999 Py_XSETREF(self->tag, tag); in element_setstate_from_attributes()
1065 Py_XSETREF(self->extra->attrib, attrib); in element_setstate_from_attributes()
2048 Py_XSETREF(self->extra->attrib, value); in element_attrib_setter()
2418 Py_XSETREF(self->element_factory, element_factory); in _elementtree_TreeBuilder___init___impl()
2429 Py_XSETREF(self->comment_factory, comment_factory); in _elementtree_TreeBuilder___init___impl()
2442 Py_XSETREF(self->pi_factory, pi_factory); in _elementtree_TreeBuilder___init___impl()
2546 Py_XSETREF(st->comment_factory, comment_factory); in _elementtree__set_factories_impl()
2552 Py_XSETREF(st->pi_factory, pi_factory); in _elementtree__set_factories_impl()
2804 Py_XSETREF(self->last_for_tail, self->last); in treebuilder_handle_end()
[all …]
Dzlibmodule.c1094 Py_XSETREF(retval->unused_data, self->unused_data); in zlib_Compress_copy_impl()
1096 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Compress_copy_impl()
1098 Py_XSETREF(retval->zdict, self->zdict); in zlib_Compress_copy_impl()
1182 Py_XSETREF(retval->unused_data, self->unused_data); in zlib_Decompress_copy_impl()
1184 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Decompress_copy_impl()
1186 Py_XSETREF(retval->zdict, self->zdict); in zlib_Decompress_copy_impl()
Ditertoolsmodule.c281 Py_XSETREF(gbo->currkey, newkey); in groupby_step()
312 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next()
354 Py_XSETREF(lz->currkey, currkey); in groupby_setstate()
356 Py_XSETREF(lz->currvalue, currvalue); in groupby_setstate()
358 Py_XSETREF(lz->tgtkey, tgtkey); in groupby_setstate()
950 Py_XSETREF(to->dataobj, tdo); in tee_setstate()
1211 Py_XSETREF(lz->saved, saved); in cycle_setstate()
2147 Py_XSETREF(lz->source, source); in chain_setstate()
2149 Py_XSETREF(lz->active, active); in chain_setstate()
2501 Py_XSETREF(lz->result, result); in product_setstate()
[all …]
D_asynciomodule.c741 Py_XSETREF(fut->fut_cancel_msg, msg); in future_cancel()
1323 Py_XSETREF(fut->fut_cancel_msg, msg); in FutureObj_set_cancel_message()
2036 Py_XSETREF(self->task_context, PyContext_CopyCurrent()); in _asyncio_Task___init___impl()
2045 Py_XSETREF(self->task_coro, coro); in _asyncio_Task___init___impl()
2054 Py_XSETREF(self->task_name, name); in _asyncio_Task___init___impl()
2233 Py_XSETREF(self->task_cancel_msg, msg); in _asyncio_Task_cancel_impl()
2377 Py_XSETREF(self->task_name, value); in _asyncio_Task_set_name()
Dfaulthandler.c543 Py_XSETREF(fatal_error.file, file); in faulthandler_py_enable()
757 Py_XSETREF(thread.file, file); in faulthandler_dump_traceback_later()
940 Py_XSETREF(user->file, file); in faulthandler_register_py()
D_bz2module.c553 Py_XSETREF(d->unused_data, in decompress()
661 Py_XSETREF(self->unused_data, PyBytes_FromStringAndSize(NULL, 0)); in _bz2_BZ2Decompressor___init___impl()
D_functoolsmodule.c460 Py_XSETREF(pto->dict, dict); in partial_setstate()
697 Py_XSETREF(_PyTuple_ITEMS(args)[0], result); in functools_reduce()
698 Py_XSETREF(_PyTuple_ITEMS(args)[1], op2); in functools_reduce()
D_lzmamodule.c1047 Py_XSETREF(d->unused_data, in decompress()
1244 Py_XSETREF(self->unused_data, PyBytes_FromStringAndSize(NULL, 0)); in _lzma_LZMADecompressor___init___impl()
D_csv.c314 Py_XSETREF(*target, src); in _set_str()
850 Py_XSETREF(self->fields, PyList_New(0)); in parse_reset()
D_lsprof.c778 Py_XSETREF(pObj->externalTimer, timer); in profiler_init()
/third_party/python/Include/cpython/
Dobject.h373 #define Py_XSETREF(op, op2) \ macro
/third_party/python/Modules/_io/
Dtextio.c1757 Py_XSETREF(self->decoded_chars, chars); in textiowrapper_set_decoded_chars()
1911 Py_XSETREF(self->snapshot, snapshot); in textiowrapper_read_chunk()
2018 Py_XSETREF(result, PyUnicode_Join(_PyIO_empty_str, chunks)); in _io_TextIOWrapper_read_impl()
2606 Py_XSETREF(self->snapshot, snapshot); in _io_TextIOWrapper_seek_impl()
2627 Py_XSETREF(self->snapshot, snapshot); in _io_TextIOWrapper_seek_impl()
Dbufferedio.c1171 Py_XSETREF(res, _PyBytes_Join(_PyIO_empty_bytes, chunks)); in _buffered_readline()
1442 Py_XSETREF(self->raw, raw); in _io_BufferedReader___init___impl()
1796 Py_XSETREF(self->raw, raw); in _io_BufferedWriter___init___impl()
2309 Py_XSETREF(self->raw, raw); in _io_BufferedRandom___init___impl()
Dbytesio.c947 Py_XSETREF(self->buf, initvalue); in _io_BytesIO___init___impl()
/third_party/python/Modules/_ctypes/
D_ctypes.c1033 Py_XSETREF(stgdict->proto, proto); in PyCPointerType_SetProto()
2740 Py_XSETREF(ob->b_objects, keep); /* refcount consumed */ in KeepRef()
3260 Py_XSETREF(self->errcheck, ob); in PyCFuncPtr_set_errcheck()
3297 Py_XSETREF(self->restype, ob); in PyCFuncPtr_set_restype()
3332 Py_XSETREF(self->converters, converters); in PyCFuncPtr_set_argtypes()
3334 Py_XSETREF(self->argtypes, ob); in PyCFuncPtr_set_argtypes()
/third_party/python/Python/
Dimport.c855 Py_XSETREF(co->co_filename, newname); in update_code_filenames()
1304 Py_XSETREF(*outer_link, next); in remove_importlib_frames()

12