/third_party/python/Modules/ |
D | mathmodule.c | 843 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.c | 327 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.c | 416 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
|
D | zlibmodule.c | 733 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.c | 1394 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()
|
D | signalmodule.c | 1446 Py_SETREF(Handlers[SIGINT].func, IntHandler); in PyInit__signal()
|
D | posixmodule.c | 3724 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.c | 2014 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/ |
D | cursor.c | 449 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()
|
D | connection.c | 771 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/ |
D | hamt.c | 761 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()
|
D | context.c | 158 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.c | 253 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()
|
D | ast_opt.c | 358 Py_SETREF(newval, PyFrozenSet_New(newval)); in fold_iter()
|
/third_party/python/Include/cpython/ |
D | object.h | 366 #define Py_SETREF(op, op2) \ macro
|
/third_party/python/Objects/ |
D | abstract.c | 1431 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()
|
D | floatobject.c | 1474 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()
|
D | funcobject.c | 558 Py_SETREF(newfunc->func_name, name); in func_new_impl()
|
D | rangeobject.c | 1026 Py_SETREF(r->index, new_index); in longrangeiter_next()
|
D | bytesobject.c | 2338 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.c | 517 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/ |
D | bytesio.c | 117 Py_SETREF(self->buf, new_buf); in unshare_buffer()
|
D | textio.c | 1335 Py_SETREF(self->encoding, encoding); in textiowrapper_change_encoding() 1336 Py_SETREF(self->errors, errors); in textiowrapper_change_encoding()
|
/third_party/python/Parser/ |
D | tokenizer.c | 1123 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.c | 2662 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()
|