Home
last modified time | relevance | path

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

123

/external/python/cpython3/Modules/
Dmathmodule.c1732 Py_SETREF(q, PyNumber_FloorDivide(q, a)); in math_isqrt()
1738 Py_SETREF(a, _PyLong_Lshift(a, d - 1U - e)); in math_isqrt()
1743 Py_SETREF(a, PyNumber_Add(a, q)); in math_isqrt()
1765 Py_SETREF(a, PyNumber_Subtract(a, _PyLong_One)); in math_isqrt()
3066 Py_SETREF(n, _PyLong_Copy((PyLongObject *)n)); in math_perm_impl()
3077 Py_SETREF(k, _PyLong_Copy((PyLongObject *)k)); in math_perm_impl()
3130 Py_SETREF(factor, PyNumber_Subtract(factor, _PyLong_One)); in math_perm_impl()
3134 Py_SETREF(result, PyNumber_Multiply(result, factor)); in math_perm_impl()
3189 Py_SETREF(n, _PyLong_Copy((PyLongObject *)n)); in math_comb_impl()
3200 Py_SETREF(k, _PyLong_Copy((PyLongObject *)k)); in math_comb_impl()
[all …]
D_functoolsmodule.c289 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %R", arglist, in partial_repr()
299 Py_SETREF(arglist, PyUnicode_FromFormat("%U, %S=%R", arglist, in partial_repr()
369 Py_SETREF(pto->fn, fn); in partial_setstate()
370 Py_SETREF(pto->args, fnargs); in partial_setstate()
371 Py_SETREF(pto->kw, kw); in partial_setstate()
D_curses_panel.c409 Py_SETREF(po->wo, win); in _curses_panel_panel_replace_impl()
Dzlibmodule.c719 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
733 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
D_datetimemodule.c1393 Py_SETREF(offset, delta_negative((PyDateTime_Delta *)offset)); in format_utcoffset()
2554 Py_SETREF(args, PyUnicode_FromFormat("days=%d", GET_TD_DAYS(self))); in delta_repr()
2562 Py_SETREF(args, PyUnicode_FromFormat("%U%sseconds=%d", args, sep, in delta_repr()
2571 Py_SETREF(args, PyUnicode_FromFormat("%U%smicroseconds=%d", args, sep, in delta_repr()
2579 Py_SETREF(args, PyUnicode_FromString("0")); in delta_repr()
3577 Py_SETREF(result, add_datetime_timedelta((PyDateTime_DateTime *)result, in tzinfo_fromutc()
5350 Py_SETREF(result, delta_subtract(result, offdiff)); in datetime_subtract()
/external/python/cpython2/Modules/
D_functoolsmodule.c324 Py_SETREF(pto->fn, fn); in partial_setstate()
325 Py_SETREF(pto->args, fnargs); in partial_setstate()
326 Py_SETREF(pto->kw, kw); in partial_setstate()
D_curses_panel.c292 Py_SETREF(po->wo, temp); in PyCursesPanel_replace_panel()
Dzlibmodule.c554 Py_SETREF(self->unused_data, new_data); in save_unconsumed_input()
568 Py_SETREF(self->unconsumed_tail, new_data); in save_unconsumed_input()
D_elementtree.c1628 Py_SETREF(self->tag, value);
1639 Py_SETREF(self->extra->attrib, value);
1869 Py_SETREF(self->this, (ElementObject*) node);
1872 Py_SETREF(self->last, (ElementObject*) node);
Dsignalmodule.c624 Py_SETREF(Handlers[SIGINT].func, IntHandler); in initsignal()
/external/python/cpython3/Python/
Dhamt.c762 Py_SETREF(ret->b_array[val_idx], (PyObject*)sub_node); in hamt_node_bitmap_assoc()
788 Py_SETREF(ret->b_array[val_idx], val); in hamt_node_bitmap_assoc()
815 Py_SETREF(ret->b_array[key_idx], NULL); in hamt_node_bitmap_assoc()
816 Py_SETREF(ret->b_array[val_idx], (PyObject *)sub_node); in hamt_node_bitmap_assoc()
1040 Py_SETREF(clone->b_array[val_idx], val); in hamt_node_bitmap_without()
1064 Py_SETREF(clone->b_array[val_idx], in hamt_node_bitmap_without()
1764 Py_SETREF(new_node->a_array[idx], child_node); /* borrow */ in hamt_node_array_assoc()
1807 Py_SETREF(clone->a_array[idx], sub_node); /* borrow */ in hamt_node_array_without()
Dcontext.c153 Py_SETREF(ts->context, (PyObject *)ctx->ctx_prev); in PyContext_Exit()
713 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_set()
743 Py_SETREF(ctx->ctx_vars, new_vars); in contextvar_del()
D_warnings.c244 Py_SETREF(st->once_registry, registry); in get_once_registry()
271 Py_SETREF(st->default_action, default_action); in get_default_action()
296 Py_SETREF(st->filters, warnings_filters); in get_filter()
/external/python/cpython3/Modules/_sqlite/
Dcursor.c450 Py_SETREF(self->description, Py_None); in _pysqlite_query_execute()
475 Py_SETREF(self->statement, in _pysqlite_query_execute()
540 Py_SETREF(self->description, PyTuple_New(numcols)); in _pysqlite_query_execute()
Dconnection.c773 Py_SETREF(self->statements, new_list); in _pysqlite_drop_unused_statement_references()
804 Py_SETREF(self->cursors, new_list); in _pysqlite_drop_unused_cursor_references()
/external/python/cpython2/Modules/_sqlite/
Dcursor.c544 Py_SETREF(self->description, Py_None); in _pysqlite_query_execute()
569 Py_SETREF(self->statement, in _pysqlite_query_execute()
681 Py_SETREF(self->description, PyTuple_New(numcols)); in _pysqlite_query_execute()
Dconnection.c231 Py_SETREF(self->statement_cache, in pysqlite_flush_statement_cache()
827 Py_SETREF(self->statements, new_list); in _pysqlite_drop_unused_statement_references()
858 Py_SETREF(self->cursors, new_list); in _pysqlite_drop_unused_cursor_references()
/external/python/cpython2/Python/
Derrors.c232 Py_SETREF(*exc, PyExc_RuntimeError); in PyErr_NormalizeException()
234 Py_SETREF(*val, PyExc_RecursionErrorInst); in PyErr_NormalizeException()
/external/python/cpython3/Include/cpython/
Dobject.h371 #define Py_SETREF(op, op2) \ macro
/external/python/cpython3/Objects/
Dabstract.c1372 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1379 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1391 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
1405 Py_SETREF(result, _PyLong_FromNbIndexOrNbInt(result)); in PyNumber_Long()
1407 Py_SETREF(result, _PyLong_Copy((PyLongObject *)result)); in PyNumber_Long()
Dfloatobject.c1504 Py_SETREF(result, PyObject_CallFunctionObjArgs((PyObject *)type, result, NULL)); in float_fromhex()
1594 Py_SETREF(numerator, in float_as_integer_ratio_impl()
1600 Py_SETREF(denominator, in float_as_integer_ratio_impl()
/external/python/cpython3/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()
2581 Py_SETREF(result->tp_dict, (PyObject *)stgdict); in PyCFuncPtrType_new()
5489 Py_SETREF(((PyBaseExceptionObject *)self)->args, args); in comerror_init()
/external/python/cpython2/Objects/
Dfuncobject.c431 Py_SETREF(newfunc->func_name, name); in func_new()
/external/python/cpython2/Include/
Dobject.h846 #define Py_SETREF(op, op2) \ macro
/external/python/cpython3/Modules/_io/
Dbytesio.c100 Py_SETREF(self->buf, new_buf); in unshare_buffer()

123