Home
last modified time | relevance | path

Searched refs:Py_XSETREF (Results 1 - 25 of 43) sorted by relevance

12

/third_party/python/Objects/
H A Dfuncobject.c210 Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); in PyFunction_SetDefaults()
242 Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); in PyFunction_SetKwDefaults()
275 Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); in PyFunction_SetClosure()
337 Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); in PyFunction_SetAnnotations()
397 Py_XSETREF(op->func_code, value); in func_set_code()
419 Py_XSETREF(op->func_name, value); in func_set_name()
441 Py_XSETREF(op->func_qualname, value); in func_set_qualname()
482 Py_XSETREF(op->func_defaults, value); in func_set_defaults()
524 Py_XSETREF(op->func_kwdefaults, value); in func_set_kwdefaults()
558 Py_XSETREF(o in func_set_annotations()
[all...]
H A Dexceptions.c77 Py_XSETREF(self->args, args); in BaseException_init()
276 Py_XSETREF(self->args, seq); in BaseException_set_args()
304 Py_XSETREF(self->traceback, tb); in BaseException_set_tb()
408 Py_XSETREF(base_self->cause, cause); in PyException_SetCause()
423 Py_XSETREF(_PyBaseExceptionObject_cast(self)->context, context); in PyException_SetContext()
645 Py_XSETREF(self->code, PyTuple_GET_ITEM(args, 0)); in SystemExit_init()
649 Py_XSETREF(self->code, args); in SystemExit_init()
1521 Py_XSETREF(self->name, name); in ImportError_init()
1524 Py_XSETREF(self->path, path); in ImportError_init()
1530 Py_XSETREF(sel in ImportError_init()
[all...]
H A Ddescrobject.c1573 Py_XSETREF(prop->prop_name, name); in property_set_name()
1728 Py_XSETREF(((propertyobject *) new)->prop_name, pold->prop_name); in property_copy()
1787 Py_XSETREF(self->prop_get, fget); in property_init_impl()
1788 Py_XSETREF(self->prop_set, fset); in property_init_impl()
1789 Py_XSETREF(self->prop_del, fdel); in property_init_impl()
1790 Py_XSETREF(self->prop_doc, doc); in property_init_impl()
1791 Py_XSETREF(self->prop_name, NULL); in property_init_impl()
1803 Py_XSETREF(self->prop_doc, get_doc); in property_init_impl()
H A Dcellobject.c147 Py_XSETREF(op->ob_ref, obj); in cell_set_contents()
H A Dframeobject.c820 Py_XSETREF(f->f_trace, v); in frame_settrace()
1281 Py_XSETREF(fast[i], value); in _PyFrame_LocalsToFast()
H A Dmoduleobject.c74 Py_XSETREF(mod->md_name, name); in module_init_dict()
/third_party/python/Modules/
H A D_elementtree.c421 Py_XSETREF(self_elem->tag, tag); in element_init()
987 Py_XSETREF(self->tag, tag); in element_setstate_from_attributes()
1053 Py_XSETREF(self->extra->attrib, attrib); in element_setstate_from_attributes()
2036 Py_XSETREF(self->extra->attrib, value); in element_attrib_setter()
2406 Py_XSETREF(self->element_factory, element_factory); in _elementtree_TreeBuilder___init___impl()
2417 Py_XSETREF(self->comment_factory, comment_factory); in _elementtree_TreeBuilder___init___impl()
2430 Py_XSETREF(self->pi_factory, pi_factory); in _elementtree_TreeBuilder___init___impl()
2534 Py_XSETREF(st->comment_factory, comment_factory); in _elementtree__set_factories_impl()
2540 Py_XSETREF(st->pi_factory, pi_factory); in _elementtree__set_factories_impl()
2792 Py_XSETREF(sel in treebuilder_handle_end()
[all...]
H A Dzlibmodule.c1097 Py_XSETREF(retval->unused_data, self->unused_data); in zlib_Compress_copy_impl()
1099 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Compress_copy_impl()
1101 Py_XSETREF(retval->zdict, self->zdict); in zlib_Compress_copy_impl()
1185 Py_XSETREF(retval->unused_data, self->unused_data); in zlib_Decompress_copy_impl()
1187 Py_XSETREF(retval->unconsumed_tail, self->unconsumed_tail); in zlib_Decompress_copy_impl()
1189 Py_XSETREF(retval->zdict, self->zdict); in zlib_Decompress_copy_impl()
H A Ditertoolsmodule.c280 Py_XSETREF(gbo->currkey, newkey); in groupby_step()
311 Py_XSETREF(gbo->tgtkey, gbo->currkey); in groupby_next()
353 Py_XSETREF(lz->currkey, currkey); in groupby_setstate()
355 Py_XSETREF(lz->currvalue, currvalue); in groupby_setstate()
357 Py_XSETREF(lz->tgtkey, tgtkey); in groupby_setstate()
948 Py_XSETREF(to->dataobj, tdo); in tee_setstate()
1208 Py_XSETREF(lz->saved, saved); in cycle_setstate()
2146 Py_XSETREF(lz->source, source); in chain_setstate()
2148 Py_XSETREF(lz->active, active); in chain_setstate()
2500 Py_XSETREF(l in product_setstate()
[all...]
H A D_asynciomodule.c761 Py_XSETREF(fut->fut_cancel_msg, msg); in future_cancel()
1345 Py_XSETREF(fut->fut_cancel_msg, msg); in FutureObj_set_cancel_message()
2027 Py_XSETREF(self->task_context, PyContext_CopyCurrent()); in _asyncio_Task___init___impl()
2040 Py_XSETREF(self->task_coro, coro); in _asyncio_Task___init___impl()
2049 Py_XSETREF(self->task_name, name); in _asyncio_Task___init___impl()
2235 Py_XSETREF(self->task_cancel_msg, msg); in _asyncio_Task_cancel_impl()
2418 Py_XSETREF(self->task_name, value); in _asyncio_Task_set_name()
H A Dfaulthandler.c562 Py_XSETREF(fatal_error.file, file); in faulthandler_py_enable()
776 Py_XSETREF(thread.file, file); in faulthandler_dump_traceback_later()
959 Py_XSETREF(user->file, file); in faulthandler_register_py()
H A Dsyslogmodule.c155 Py_XSETREF(S_ident_o, ident); in syslog_openlog()
H A 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()
H A D_functoolsmodule.c461 Py_XSETREF(pto->dict, dict); in partial_setstate()
698 Py_XSETREF(_PyTuple_ITEMS(args)[0], result); in functools_reduce()
699 Py_XSETREF(_PyTuple_ITEMS(args)[1], op2); in functools_reduce()
H A D_lzmamodule.c1048 Py_XSETREF(d->unused_data, in decompress()
1245 Py_XSETREF(self->unused_data, PyBytes_FromStringAndSize(NULL, 0)); in _lzma_LZMADecompressor___init___impl()
H A D_csv.c320 Py_XSETREF(*target, src); in _set_str()
856 Py_XSETREF(self->fields, PyList_New(0)); in parse_reset()
H A D_pickle.c404 Py_XSETREF(*method_func, func2); in init_method_ref()
410 Py_XSETREF(*method_func, func); in init_method_ref()
954 Py_XSETREF(self->output_buffer, in _Pickler_ClearBuffer()
3592 Py_XSETREF(*module_name, item); in fix_imports()
4509 Py_XSETREF(self->reducer_override, tmp); in dump()
5061 Py_XSETREF(self->pers_func, value); in Pickler_set_persid()
7580 Py_XSETREF(self->pers_func, value); in Unpickler_set_persload()
H A D_lsprof.c785 Py_XSETREF(pObj->externalTimer, timer); in profiler_init()
H A Dreadline.c406 Py_XSETREF(*hook_var, function); in set_hook()
/third_party/python/Modules/_sqlite/
H A Dcursor.c98 Py_XSETREF(self->connection, connection); in pysqlite_cursor_init_impl()
103 Py_XSETREF(self->description, Py_None); in pysqlite_cursor_init_impl()
106 Py_XSETREF(self->lastrowid, Py_None); in pysqlite_cursor_init_impl()
113 Py_XSETREF(self->row_factory, Py_None); in pysqlite_cursor_init_impl()
225 Py_XSETREF(self->row_cast_map, PyList_New(0)); in pysqlite_build_row_cast_map()
847 Py_XSETREF(self->statement, (pysqlite_Statement *)stmt); in _pysqlite_query_execute()
/third_party/python/Modules/_io/
H A Dtextio.c242 Py_XSETREF(self->errors, errors); in _io_IncrementalNewlineDecoder___init___impl()
243 Py_XSETREF(self->decoder, Py_NewRef(decoder)); in _io_IncrementalNewlineDecoder___init___impl()
1724 Py_XSETREF(self->decoded_chars, chars); in textiowrapper_set_decoded_chars()
1878 Py_XSETREF(self->snapshot, snapshot); in textiowrapper_read_chunk()
1986 Py_XSETREF(result, PyUnicode_Join(&_Py_STR(empty), chunks)); in _io_TextIOWrapper_read_impl()
2576 Py_XSETREF(self->snapshot, snapshot); in _io_TextIOWrapper_seek_impl()
2597 Py_XSETREF(self->snapshot, snapshot); in _io_TextIOWrapper_seek_impl()
H A Dbufferedio.c1155 Py_XSETREF(res, _PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks)); in _buffered_readline()
1426 Py_XSETREF(self->raw, raw); in _io_BufferedReader___init___impl()
1781 Py_XSETREF(self->raw, raw); in _io_BufferedWriter___init___impl()
2294 Py_XSETREF(self->raw, raw); in _io_BufferedRandom___init___impl()
H A Dbytesio.c947 Py_XSETREF(self->buf, initvalue); in _io_BytesIO___init___impl()
/third_party/python/Include/cpython/
H A Dobject.h327 * Py_XSETREF is a variant of Py_SETREF that uses Py_XDECREF instead of
338 #define Py_XSETREF(op, op2) \ macro
/third_party/python/Python/
H A Derrors.c523 Py_XSETREF(tstate->exc_info->exc_value, Py_XNewRef(exc)); in _PyErr_SetHandledException()
1570 Py_XSETREF(err_msg, PyUnicode_FromString(err_msg_str ? in _PyErr_WriteUnraisableMsg()

Completed in 64 milliseconds

12