Home
last modified time | relevance | path

Searched refs:Py_SETREF (Results 1 - 25 of 39) sorted by relevance

12

/third_party/python/Modules/
H A Dmathmodule.c855 Py_SETREF(res, PyNumber_Absolute(res)); in math_gcd()
872 Py_SETREF(res, _PyLong_GCD(res, x)); in math_gcd()
930 Py_SETREF(res, PyNumber_Absolute(res)); in math_lcm()
947 Py_SETREF(res, long_lcm(res, x)); in math_lcm()
1861 Py_SETREF(q, PyNumber_FloorDivide(q, a)); in math_isqrt()
1867 Py_SETREF(a, _PyLong_Lshift(a, d - 1U - e)); in math_isqrt()
1872 Py_SETREF(a, PyNumber_Add(a, q)); in math_isqrt()
1894 Py_SETREF(a, PyNumber_Subtract(a, _PyLong_GetOne())); in math_isqrt()
3482 Py_SETREF(a, PyNumber_Multiply(a, b)); in perm_comb_small()
3489 Py_SETREF( in perm_comb_small()
[all...]
H A D_bisectmodule.c59 Py_SETREF(litem, newitem); in internal_bisect_right()
185 Py_SETREF(litem, newitem); in internal_bisect_left()
H A D_functoolsmodule.c379 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %R", arglist, in partial_repr()
389 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %S=%R", arglist, in partial_repr()
458 Py_SETREF(pto->fn, fn); in partial_setstate()
459 Py_SETREF(pto->args, fnargs); in partial_setstate()
460 Py_SETREF(pto->kw, kw); in partial_setstate()
H A D_curses_panel.c432 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
H A Dzlibmodule.c832 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
846 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
H A D_datetimemodule.c1482 Py_SETREF(offset, delta_negative((PyDateTime_Delta *)offset)); in format_utcoffset()
2641 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self))); in delta_repr()
2649 Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d", args, sep, in delta_repr()
2658 Py_SETREF(args, PyUnicode_FromFormat("%U%smicroseconds=%d", args, sep, in delta_repr()
2666 Py_SETREF(args, PyUnicode_FromString("0")); in delta_repr()
3783 Py_SETREF(result, add_datetime_timedelta((PyDateTime_DateTime *)result, in tzinfo_fromutc()
5682 Py_SETREF(result, delta_subtract(result, offdiff)); in datetime_subtract()
H A Dposixmodule.c3832 Py_SETREF(resobj, PyUnicode_EncodeFSDefault(resobj)); in posix_getcwd()
4092 Py_SETREF(v, PyUnicode_EncodeFSDefault(v)); in _listdir_windows_no_opendir()
4356 Py_SETREF(str, PyUnicode_EncodeFSDefault(str)); in os__getfullpathname_impl()
4429 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getfinalpathname_impl()
4481 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getvolumepathname_impl()
8806 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os_readlink_impl()
14064 Py_SETREF(entry->name, PyUnicode_EncodeFSDefault(entry->name)); in DirEntry_from_find_data()
14078 Py_SETREF(entry->path, PyUnicode_EncodeFSDefault(entry->path)); in DirEntry_from_find_data()
H A D_elementtree.c54 /* Py_SETREF for a PyObject* that uses a join flag. */
1999 Py_SETREF(self->tag, value); in element_tag_setter()
2721 Py_SETREF(self->this, node); in treebuilder_handle_start()
2723 Py_SETREF(self->last, node); in treebuilder_handle_start()
/third_party/python/Objects/
H A Dfuncobject.c303 Py_SETREF(op->func_annotations, ann_dict); in func_get_annotation_dict()
669 Py_SETREF(newfunc->func_name, name); in func_new_impl()
701 Py_SETREF(op->func_name, Py_NewRef(&_Py_STR(empty))); in func_clear()
702 Py_SETREF(op->func_qualname, Py_NewRef(&_Py_STR(empty))); in func_clear()
H A Dgenericaliasobject.c402 Py_SETREF(newargs, PySequence_Tuple(newargs)); in _unpack_args()
431 Py_SETREF(item, tmp); in _Py_subs_parameters()
695 Py_SETREF(tmp, PyObject_GetIter(tmp)); in ga_reduce()
860 Py_SETREF(gi->obj, NULL); in ga_iternext()
H A Diterobject.c344 Py_SETREF(awaitable, new_awaitable); in anextawaitable_getiter()
H A Dunionobject.c305 Py_SETREF(res, PyNumber_Or(res, arg)); in union_getitem()
H A Dabstract.c1459 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Index()
1559 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1578 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1591 Py_SETREF(result, PyNumber_Index(result)); in PyNumber_Long()
H A Dfloatobject.c1530 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in float_fromhex()
1618 Py_SETREF(numerator, in float_as_integer_ratio_impl()
1624 Py_SETREF(denominator, in float_as_integer_ratio_impl()
H A Dbytesobject.c2373 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in bytes_fromhex_impl()
2667 Py_SETREF(bytes, bytes_subtype_new(type, bytes)); in bytes_new_impl()
3026 Py_SETREF(*pv, v); in PyBytes_Concat()
H A Drangeobject.c1037 Py_SETREF(r->index, new_index); in longrangeiter_next()
/third_party/python/Python/
H A Dhamt.c751 Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node); in hamt_node_bitmap_assoc()
777 Py_SETREF(ret->b_array[val_idx], val); in hamt_node_bitmap_assoc()
804 Py_SETREF(ret->b_array[key_idx], NULL); in hamt_node_bitmap_assoc()
805 Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node); in hamt_node_bitmap_assoc()
1029 Py_SETREF(clone->b_array[val_idx], val); in hamt_node_bitmap_without()
1053 Py_SETREF(clone->b_array[val_idx], in hamt_node_bitmap_without()
1753 Py_SETREF(new_node->a_array[idx], child_node); /* borrow */ in hamt_node_array_assoc()
1796 Py_SETREF(clone->a_array[idx], sub_node); /* borrow */ in hamt_node_array_without()
H A Dcontext.c164 Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev); in _PyContext_Exit()
752 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_set()
782 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_del()
H A D_warnings.c256 Py_SETREF(st->once_registry, registry); in get_once_registry()
287 Py_SETREF(st->default_action, default_action); in get_default_action()
312 Py_SETREF(st->filters, warnings_filters); in get_filter()
H A Dast_opt.c273 Py_SETREF(str, PyUnicode_Replace(str, &_Py_STR(dbl_percent), in parse_literal()
598 Py_SETREF(newval, PyFrozenSet_New(newval)); in fold_iter()
/third_party/python/Modules/_sqlite/
H A Dcursor.c840 Py_SETREF(self->description, Py_None); in _pysqlite_query_execute()
860 Py_SETREF(self->statement, in _pysqlite_query_execute()
921 Py_SETREF(self->description, PyTuple_New(numcols)); in _pysqlite_query_execute()
971 Py_SETREF(self->lastrowid, PyLong_FromLongLong(lastrowid)); in _pysqlite_query_execute()
/third_party/python/Include/cpython/
H A Dobject.h321 * Py_SETREF(op, op2);
327 * Py_XSETREF is a variant of Py_SETREF that uses Py_XDECREF instead of
331 #define Py_SETREF(op, op2) \ macro
/third_party/python/Modules/_ctypes/
H A D_ctypes.c537 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
1142 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1583 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new()
2008 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType()
2139 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCSimpleType_new()
2579 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/
H A Dbytesio.c117 Py_SETREF(self->buf, new_buf); in unshare_buffer()
/third_party/python/Modules/_decimal/
H A D_decimal.c2699 Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL)); in dec_from_float()
3637 Py_SETREF(exponent, _py_long_power(tmp, exponent, Py_None)); in dec_as_integer_ratio()
3644 Py_SETREF(numerator, _py_long_multiply(numerator, exponent)); in dec_as_integer_ratio()
3660 Py_SETREF(numerator, _py_long_floor_divide(numerator, tmp)); in dec_as_integer_ratio()
3661 Py_SETREF(denominator, _py_long_floor_divide(denominator, tmp)); in dec_as_integer_ratio()

Completed in 85 milliseconds

12