Home
last modified time | relevance | path

Searched refs:trunc_func (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Objects/
Dabstract.c1612 PyObject *trunc_func; local
1645 trunc_func = PyObject_GetAttr(o, trunc_name);
1646 if (trunc_func) {
1647 PyObject *truncated = PyEval_CallObject(trunc_func, NULL);
1648 Py_DECREF(trunc_func);
1706 PyObject *trunc_func; local
1740 trunc_func = PyObject_GetAttr(o, trunc_name);
1741 if (trunc_func) {
1742 PyObject *truncated = PyEval_CallObject(trunc_func, NULL);
1744 Py_DECREF(trunc_func);
/external/python/cpython3/Objects/
Dabstract.c1346 PyObject *trunc_func; in PyNumber_Long() local
1366 trunc_func = _PyObject_LookupSpecial(o, &PyId___trunc__); in PyNumber_Long()
1367 if (trunc_func) { in PyNumber_Long()
1368 result = _PyObject_CallNoArg(trunc_func); in PyNumber_Long()
1369 Py_DECREF(trunc_func); in PyNumber_Long()