Lines Matching defs:item
313 PyObject *it, *item;
323 item = iternext(it);
324 if (item == NULL)
326 cmp = PyObject_IsTrue(item);
327 Py_DECREF(item);
362 PyObject *it, *item;
372 item = iternext(it);
373 if (item == NULL)
375 cmp = PyObject_IsTrue(item);
376 Py_DECREF(item);
577 PyObject *item;
585 item = iternext(it);
586 if (item == NULL)
590 ok = PyObject_IsTrue(item);
593 good = PyObject_CallOneArg(lz->func, item);
595 Py_DECREF(item);
602 return item;
603 Py_DECREF(item);
625 Return an iterator yielding those items of iterable for which function(item)\n\
1500 Return the next item from the iterator. If default is given and the iterator\n\
1651 Return the next item from the async iterator. If default is given and the async
1732 PyObject *v, *it, *item, *val, *maxitem, *maxval, *keyfunc=NULL;
1777 while (( item = PyIter_Next(it) )) {
1780 val = PyObject_CallOneArg(keyfunc, item);
1784 /* no key function; the value is the item */
1786 val = item;
1790 /* maximum value and item are unset; set them */
1792 maxitem = item;
1795 /* maximum value and item are set; update them as necessary */
1804 maxitem = item;
1807 Py_DECREF(item);
1832 Py_DECREF(item);
1851 With a single iterable argument, return its smallest item. The\n\
1868 With a single iterable argument, return its biggest item. The\n\
2452 PyObject *temp, *item, *iter;
2501 item = PyIter_Next(iter);
2502 if (item == NULL) {
2508 if (PyLong_CheckExact(item) || PyBool_Check(item)) {
2512 switch (Py_SIZE(item)) {
2513 case -1: b = -(sdigit) ((PyLongObject*)item)->ob_digit[0]; break;
2515 case 0: Py_DECREF(item); continue;
2516 case 1: b = ((PyLongObject*)item)->ob_digit[0]; break;
2517 default: b = PyLong_AsLongAndOverflow(item, &overflow); break;
2524 Py_DECREF(item);
2531 Py_DECREF(item);
2535 temp = PyNumber_Add(result, item);
2537 Py_DECREF(item);
2551 item = PyIter_Next(iter);
2552 if (item == NULL) {
2558 if (PyFloat_CheckExact(item)) {
2559 f_result += PyFloat_AS_DOUBLE(item);
2560 _Py_DECREF_SPECIALIZED(item, _PyFloat_ExactDealloc);
2563 if (PyLong_Check(item)) {
2566 value = PyLong_AsLongAndOverflow(item, &overflow);
2569 Py_DECREF(item);
2575 Py_DECREF(item);
2579 temp = PyNumber_Add(result, item);
2581 Py_DECREF(item);
2592 item = PyIter_Next(iter);
2593 if (item == NULL) {
2614 temp = PyNumber_Add(result, item);
2616 Py_DECREF(item);
2722 PyObject *item = PyTuple_GET_ITEM(args, i);
2723 PyObject *it = PyObject_GetIter(item);
2781 PyObject *item;
2790 item = (*Py_TYPE(it)->tp_iternext)(it);
2791 if (item == NULL) {
2799 PyTuple_SET_ITEM(result, i, item);
2813 item = (*Py_TYPE(it)->tp_iternext)(it);
2814 if (item == NULL) {
2821 PyTuple_SET_ITEM(result, i, item);
2843 item = (*Py_TYPE(it)->tp_iternext)(it);
2844 if (item) {
2845 Py_DECREF(item);