Home
last modified time | relevance | path

Searched refs:nb_add (Results 1 - 4 of 4) sorted by relevance

/third_party/python/Include/cpython/
H A Dobject.h66 binaryfunc nb_add; member
/third_party/python/Objects/
H A Dabstract.c1073 PyObject *result = BINARY_OP1(v, w, NB_SLOT(nb_add), "+"); in PyNumber_Add()
1262 NB_SLOT(nb_add), "+="); in PyNumber_InPlaceAdd()
1768 have an nb_add slot, not an sq_concat slot. So we fall back in PySequence_Concat()
1769 to nb_add if both arguments appear to be sequences. */ in PySequence_Concat()
1771 PyObject *result = BINARY_OP1(s, o, NB_SLOT(nb_add), "+"); in PySequence_Concat()
1831 NB_SLOT(nb_add), "+="); in PySequence_InPlaceConcat()
H A Dtypeobject.c5881 COPYNUM(nb_add); in inherit_slots()
7428 SLOT1BIN(slot_nb_add, nb_add, __add__, __radd__)
8100 BINSLOT("__add__", nb_add, slot_nb_add,
8102 RBINSLOT("__radd__", nb_add, slot_nb_add,
8198 The logic in abstract.c always falls back to nb_add/nb_multiply in
8321 * tp_as_number->nb_add uses __add__ and __radd__. In the other direction,
8328 * This can happen for example if it's tp_as_number->nb_add but tp_as_number
8704 cause more than one descriptor to be added (for example, the nb_add
/third_party/python/Modules/
H A D_testcapimodule.c1112 binaryfunc nb_add = PyType_GetSlot(&PyLong_Type, Py_nb_add); in test_get_statictype_slots() local
1113 if (PyLong_Type.tp_as_number->nb_add != nb_add) { in test_get_statictype_slots()
1114 PyErr_SetString(PyExc_AssertionError, "mismatch: nb_add of long"); in test_get_statictype_slots()
6897 0, /* nb_add */

Completed in 29 milliseconds