Home
last modified time | relevance | path

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

12

/third_party/python/Modules/
Dmathmodule.c843 Py_SETREF(res, PyNumber_Absolute(res)); in math_gcd()
858 Py_SETREF(res, _PyLong_GCD(res, x)); in math_gcd()
916 Py_SETREF(res, PyNumber_Absolute(res)); in math_lcm()
931 Py_SETREF(res, long_lcm(res, x)); in math_lcm()
1806 Py_SETREF(q, PyNumber_FloorDivide(q, a)); in math_isqrt()
1812 Py_SETREF(a, _PyLong_Lshift(a, d - 1U - e)); in math_isqrt()
1817 Py_SETREF(a, PyNumber_Add(a, q)); in math_isqrt()
1839 Py_SETREF(a, PyNumber_Subtract(a, _PyLong_One)); in math_isqrt()
3140 Py_SETREF(n, _PyLong_Copy((PyLongObject *)n)); in math_perm_impl()
3151 Py_SETREF(k, _PyLong_Copy((PyLongObject *)k)); in math_perm_impl()
[all …]
D_functoolsmodule.c327 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %R", arglist, in partial_repr()
337 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %S=%R", arglist, in partial_repr()
406 Py_SETREF(pto->fn, fn); in partial_setstate()
407 Py_SETREF(pto->args, fnargs); in partial_setstate()
408 Py_SETREF(pto->kw, kw); in partial_setstate()
D_curses_panel.c416 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
Dzlibmodule.c733 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
747 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
D_datetimemodule.c1394 Py_SETREF(offset, delta_negative((PyDateTime_Delta *)offset)); in format_utcoffset()
2553 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self))); in delta_repr()
2561 Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d", args, sep, in delta_repr()
2570 Py_SETREF(args, PyUnicode_FromFormat("%U%smicroseconds=%d", args, sep, in delta_repr()
2578 Py_SETREF(args, PyUnicode_FromString("0")); in delta_repr()
3711 Py_SETREF(result, add_datetime_timedelta((PyDateTime_DateTime *)result, in tzinfo_fromutc()
5487 Py_SETREF(result, delta_subtract(result, offdiff)); in datetime_subtract()
Dsignalmodule.c1446 Py_SETREF(Handlers[SIGINT].func, IntHandler); in PyInit__signal()
Dposixmodule.c3724 Py_SETREF(resobj, PyUnicode_EncodeFSDefault(resobj)); in posix_getcwd()
3984 Py_SETREF(v, PyUnicode_EncodeFSDefault(v)); in _listdir_windows_no_opendir()
4207 Py_SETREF(str, PyUnicode_EncodeFSDefault(str)); in os__getfullpathname_impl()
4280 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getfinalpathname_impl()
4332 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os__getvolumepathname_impl()
8514 Py_SETREF(result, PyUnicode_EncodeFSDefault(result)); in os_readlink_impl()
13598 Py_SETREF(entry->name, PyUnicode_EncodeFSDefault(entry->name)); in DirEntry_from_find_data()
13612 Py_SETREF(entry->path, PyUnicode_EncodeFSDefault(entry->path)); in DirEntry_from_find_data()
D_elementtree.c2014 Py_SETREF(self->tag, value); in element_tag_setter()
2736 Py_SETREF(self->this, node); in treebuilder_handle_start()
2738 Py_SETREF(self->last, node); in treebuilder_handle_start()
/third_party/python/Modules/_sqlite/
Dcursor.c449 Py_SETREF(self->description, Py_None); in _pysqlite_query_execute()
474 Py_SETREF(self->statement, in _pysqlite_query_execute()
539 Py_SETREF(self->description, PyTuple_New(numcols)); in _pysqlite_query_execute()
575 Py_SETREF(self->lastrowid, PyLong_FromLongLong(lastrowid)); in _pysqlite_query_execute()
Dconnection.c771 Py_SETREF(self->statements, new_list); in _pysqlite_drop_unused_statement_references()
802 Py_SETREF(self->cursors, new_list); in _pysqlite_drop_unused_cursor_references()
/third_party/python/Python/
Dhamt.c761 Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node); in hamt_node_bitmap_assoc()
787 Py_SETREF(ret->b_array[val_idx], val); in hamt_node_bitmap_assoc()
814 Py_SETREF(ret->b_array[key_idx], NULL); in hamt_node_bitmap_assoc()
815 Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node); in hamt_node_bitmap_assoc()
1039 Py_SETREF(clone->b_array[val_idx], val); in hamt_node_bitmap_without()
1063 Py_SETREF(clone->b_array[val_idx], in hamt_node_bitmap_without()
1763 Py_SETREF(new_node->a_array[idx], child_node); /* borrow */ in hamt_node_array_assoc()
1806 Py_SETREF(clone->a_array[idx], sub_node); /* borrow */ in hamt_node_array_without()
Dcontext.c158 Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev); in _PyContext_Exit()
728 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_set()
758 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_del()
D_warnings.c253 Py_SETREF(st->once_registry, registry); in get_once_registry()
280 Py_SETREF(st->default_action, default_action); in get_default_action()
305 Py_SETREF(st->filters, warnings_filters); in get_filter()
Dast_opt.c358 Py_SETREF(newval, PyFrozenSet_New(newval)); in fold_iter()
/third_party/python/Include/cpython/
Dobject.h366 #define Py_SETREF(op, op2) \ macro
/third_party/python/Objects/
Dabstract.c1431 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1438 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1450 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1464 Py_SETREF(result, _PyLong_FromNbIndexOrNbInt(result)); in PyNumber_Long()
1466 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
Dfloatobject.c1474 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in float_fromhex()
1562 Py_SETREF(numerator, in float_as_integer_ratio_impl()
1568 Py_SETREF(denominator, in float_as_integer_ratio_impl()
Dfuncobject.c558 Py_SETREF(newfunc->func_name, name); in func_new_impl()
Drangeobject.c1026 Py_SETREF(r->index, new_index); in longrangeiter_next()
Dbytesobject.c2338 Py_SETREF(result, PyObject_CallOneArg((PyObject *)type, result)); in bytes_fromhex_impl()
2973 Py_SETREF(*pv, v); in PyBytes_Concat()
/third_party/python/Modules/_ctypes/
D_ctypes.c517 Py_SETREF(result->tp_dict, (PyObject *)dict); in StructUnionType_new()
1122 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCPointerType_new()
1609 Py_SETREF(result->tp_dict, (PyObject *)stgdict); /* steal the reference */ in PyCArrayType_new()
2035 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in CreateSwappedType()
2166 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCSimpleType_new()
2599 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCFuncPtrType_new()
5516 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()
Dtextio.c1335 Py_SETREF(self->encoding, encoding); in textiowrapper_change_encoding()
1336 Py_SETREF(self->errors, errors); in textiowrapper_change_encoding()
/third_party/python/Parser/
Dtokenizer.c1123 Py_SETREF(s, PyUnicode_Substring(s, 0, invalid + 1)); in verify_identifier()
1125 Py_SETREF(s, PyUnicode_AsUTF8String(s)); in verify_identifier()
/third_party/python/Modules/_decimal/
D_decimal.c2662 Py_SETREF(result, PyObject_CallFunctionObjArgs(type, result, NULL)); in dec_from_float()
3468 Py_SETREF(exponent, _py_long_power(tmp, exponent, Py_None)); in dec_as_integer_ratio()
3475 Py_SETREF(numerator, _py_long_multiply(numerator, exponent)); in dec_as_integer_ratio()
3491 Py_SETREF(numerator, _py_long_floor_divide(numerator, tmp)); in dec_as_integer_ratio()
3492 Py_SETREF(denominator, _py_long_floor_divide(denominator, tmp)); in dec_as_integer_ratio()

12