/third_party/python/Modules/ |
D | mathmodule.c | 845 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.c | 49 Py_SETREF(litem, newitem); in internal_bisect_right() 174 Py_SETREF(litem, newitem); in internal_bisect_left()
|
D | _functoolsmodule.c | 378 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.c | 432 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
|
D | zlibmodule.c | 829 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.c | 1385 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()
|
D | posixmodule.c | 3798 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.c | 2011 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/ |
D | cursor.c | 485 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()
|
D | connection.c | 836 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/ |
D | hamt.c | 742 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()
|
D | context.c | 164 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.c | 247 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/ |
D | funcobject.c | 248 Py_SETREF(op->func_annotations, ann_dict); in func_get_annotation_dict() 606 Py_SETREF(newfunc->func_name, name); in func_new_impl()
|
D | iterobject.c | 335 Py_SETREF(awaitable, new_awaitable); in anextawaitable_getiter()
|
D | floatobject.c | 1494 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()
|
D | unionobject.c | 388 Py_SETREF(res, PyNumber_Or(res, arg)); in union_getitem()
|
D | abstract.c | 1470 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()
|
D | bytesobject.c | 2353 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()
|
D | rangeobject.c | 1039 Py_SETREF(r->index, new_index); in longrangeiter_next()
|
/third_party/python/Include/cpython/ |
D | object.h | 366 #define Py_SETREF(op, op2) \ macro
|
/third_party/python/Modules/_ctypes/ |
D | _ctypes.c | 524 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/ |
D | bytesio.c | 117 Py_SETREF(self->buf, new_buf); in unshare_buffer()
|
/third_party/python/Parser/ |
D | tokenizer.c | 1299 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.c | 2661 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()
|