Home
last modified time | relevance | path

Searched refs:Py_SETREF (Results 1 – 25 of 41) sorted by relevance

12

/third_party/python/Modules/
Dmathmodule.c845 Py_SETREF(res, PyNumber_Absolute(res)); in math_gcd()
862 Py_SETREF(res, _PyLong_GCD(res, x)); in math_gcd()
920 Py_SETREF(res, PyNumber_Absolute(res)); in math_lcm()
937 Py_SETREF(res, long_lcm(res, x)); in math_lcm()
1816 Py_SETREF(q, PyNumber_FloorDivide(q, a)); in math_isqrt()
1822 Py_SETREF(a, _PyLong_Lshift(a, d - 1U - e)); in math_isqrt()
1827 Py_SETREF(a, PyNumber_Add(a, q)); in math_isqrt()
1849 Py_SETREF(a, PyNumber_Subtract(a, _PyLong_GetOne())); in math_isqrt()
3302 Py_SETREF(factor, PyNumber_Subtract(factor, one)); in math_perm_impl()
3306 Py_SETREF(result, PyNumber_Multiply(result, factor)); in math_perm_impl()
[all …]
D_bisectmodule.c49 Py_SETREF(litem, newitem); in internal_bisect_right()
174 Py_SETREF(litem, newitem); in internal_bisect_left()
D_functoolsmodule.c378 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %R", arglist, in partial_repr()
388 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %S=%R", arglist, in partial_repr()
457 Py_SETREF(pto->fn, fn); in partial_setstate()
458 Py_SETREF(pto->args, fnargs); in partial_setstate()
459 Py_SETREF(pto->kw, kw); in partial_setstate()
D_curses_panel.c432 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
Dzlibmodule.c829 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
843 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
D_datetimemodule.c1385 Py_SETREF(offset, delta_negative((PyDateTime_Delta *)offset)); in format_utcoffset()
2544 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self))); in delta_repr()
2552 Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d", args, sep, in delta_repr()
2561 Py_SETREF(args, PyUnicode_FromFormat("%U%smicroseconds=%d", args, sep, in delta_repr()
2569 Py_SETREF(args, PyUnicode_FromString("0")); in delta_repr()
3702 Py_SETREF(result, add_datetime_timedelta((PyDateTime_DateTime *)result, in tzinfo_fromutc()
5478 Py_SETREF(result, delta_subtract(result, offdiff)); in datetime_subtract()
Dposixmodule.c3798 Py_SETREF(resobj, PyUnicode_EncodeFSDefault(resobj)); in posix_getcwd()
4058 Py_SETREF(v, PyUnicode_EncodeFSDefault(v)); in _listdir_windows_no_opendir()
4281 Py_SETREF(str, PyUnicode_EncodeFSDefault(str)); in os__getfullpathname_impl()
4354 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getfinalpathname_impl()
4406 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getvolumepathname_impl()
8642 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os_readlink_impl()
13859 Py_SETREF(entry->name, PyUnicode_EncodeFSDefault(entry->name)); in DirEntry_from_find_data()
13873 Py_SETREF(entry->path, PyUnicode_EncodeFSDefault(entry->path)); in DirEntry_from_find_data()
D_elementtree.c2011 Py_SETREF(self->tag, value); in element_tag_setter()
2733 Py_SETREF(self->this, node); in treebuilder_handle_start()
2735 Py_SETREF(self->last, node); in treebuilder_handle_start()
/third_party/python/Modules/_sqlite/
Dcursor.c485 Py_SETREF(self->description, Py_None); in _pysqlite_query_execute()
509 Py_SETREF(self->statement, in _pysqlite_query_execute()
569 Py_SETREF(self->description, PyTuple_New(numcols)); in _pysqlite_query_execute()
605 Py_SETREF(self->lastrowid, PyLong_FromLongLong(lastrowid)); in _pysqlite_query_execute()
Dconnection.c836 Py_SETREF(self->statements, new_list); in _pysqlite_drop_unused_statement_references()
867 Py_SETREF(self->cursors, new_list); in _pysqlite_drop_unused_cursor_references()
/third_party/python/Python/
Dhamt.c742 Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node); in hamt_node_bitmap_assoc()
768 Py_SETREF(ret->b_array[val_idx], val); in hamt_node_bitmap_assoc()
795 Py_SETREF(ret->b_array[key_idx], NULL); in hamt_node_bitmap_assoc()
796 Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node); in hamt_node_bitmap_assoc()
1020 Py_SETREF(clone->b_array[val_idx], val); in hamt_node_bitmap_without()
1044 Py_SETREF(clone->b_array[val_idx], in hamt_node_bitmap_without()
1744 Py_SETREF(new_node->a_array[idx], child_node); /* borrow */ in hamt_node_array_assoc()
1787 Py_SETREF(clone->a_array[idx], sub_node); /* borrow */ in hamt_node_array_without()
Dcontext.c164 Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev); in _PyContext_Exit()
744 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_set()
774 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_del()
D_warnings.c247 Py_SETREF(st->once_registry, registry); in get_once_registry()
274 Py_SETREF(st->default_action, default_action); in get_default_action()
299 Py_SETREF(st->filters, warnings_filters); in get_filter()
/third_party/python/Objects/
Dfuncobject.c248 Py_SETREF(op->func_annotations, ann_dict); in func_get_annotation_dict()
606 Py_SETREF(newfunc->func_name, name); in func_new_impl()
Diterobject.c335 Py_SETREF(awaitable, new_awaitable); in anextawaitable_getiter()
Dfloatobject.c1494 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in float_fromhex()
1582 Py_SETREF(numerator, in float_as_integer_ratio_impl()
1588 Py_SETREF(denominator, in float_as_integer_ratio_impl()
Dunionobject.c388 Py_SETREF(res, PyNumber_Or(res, arg)); in union_getitem()
Dabstract.c1470 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Index()
1571 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1585 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1598 Py_SETREF(result, PyNumber_Index(result)); in PyNumber_Long()
Dbytesobject.c2353 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in bytes_fromhex_impl()
2646 Py_SETREF(bytes, bytes_subtype_new(type, bytes)); in bytes_new_impl()
2983 Py_SETREF(*pv, v); in PyBytes_Concat()
Drangeobject.c1039 Py_SETREF(r->index, new_index); in longrangeiter_next()
/third_party/python/Include/cpython/
Dobject.h366 #define Py_SETREF(op, op2) \ macro
/third_party/python/Modules/_ctypes/
D_ctypes.c524 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
1129 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1607 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new()
2032 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType()
2163 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCSimpleType_new()
2596 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCFuncPtrType_new()
5510 Py_SETREF(((PyBaseExceptionObject *)self)->args, args); in comerror_init()
/third_party/python/Modules/_io/
Dbytesio.c117 Py_SETREF(self->buf, new_buf); in unshare_buffer()
/third_party/python/Parser/
Dtokenizer.c1299 Py_SETREF(s, PyUnicode_Substring(s, 0, invalid + 1)); in verify_identifier()
1301 Py_SETREF(s, PyUnicode_AsUTF8String(s)); in verify_identifier()
/third_party/python/Modules/_decimal/
D_decimal.c2661 Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL)); in dec_from_float()
3480 Py_SETREF(exponent, _py_long_power(tmp, exponent, Py_None)); in dec_as_integer_ratio()
3487 Py_SETREF(numerator, _py_long_multiply(numerator, exponent)); in dec_as_integer_ratio()
3503 Py_SETREF(numerator, _py_long_floor_divide(numerator, tmp)); in dec_as_integer_ratio()
3504 Py_SETREF(denominator, _py_long_floor_divide(denominator, tmp)); in dec_as_integer_ratio()

12