Lines Matching defs:pool

2219     PyObject *pools;        /* tuple of pool tuples */
2220 Py_ssize_t *indices; /* one index per pool */
2278 PyObject *pool = PySequence_Tuple(item);
2279 if (pool == NULL)
2281 PyTuple_SET_ITEM(pools, i, pool);
2285 PyObject *pool = PyTuple_GET_ITEM(pools, i - nargs);
2286 Py_INCREF(pool);
2287 PyTuple_SET_ITEM(pools, i, pool);
2344 PyObject *pool;
2357 first element from each pool. */
2363 pool = PyTuple_GET_ITEM(pools, i);
2364 if (PyTuple_GET_SIZE(pool) == 0)
2366 elem = PyTuple_GET_ITEM(pool, 0);
2390 /* Update the pool indices right-to-left. Only advance to the
2391 next pool when the previous one rolls-over */
2393 pool = PyTuple_GET_ITEM(pools, i);
2395 if (indices[i] == PyTuple_GET_SIZE(pool)) {
2396 /* Roll-over and advance to next pool */
2398 elem = PyTuple_GET_ITEM(pool, 0);
2405 elem = PyTuple_GET_ITEM(pool, indices[i]);
2473 PyObject* pool;
2477 pool = PyTuple_GET_ITEM(lz->pools, i);
2478 poolsize = PyTuple_GET_SIZE(pool);
2495 PyObject *pool = PyTuple_GET_ITEM(lz->pools, i);
2496 PyObject *element = PyTuple_GET_ITEM(pool, lz->indices[i]);
2577 PyObject *pool; /* input converted to a tuple */
2602 PyObject *pool = NULL;
2606 pool = PySequence_Tuple(iterable);
2607 if (pool == NULL)
2609 n = PyTuple_GET_SIZE(pool);
2629 co->pool = pool;
2640 Py_XDECREF(pool);
2648 Py_XDECREF(co->pool);
2668 Py_VISIT(co->pool);
2678 PyObject *pool = co->pool;
2681 Py_ssize_t n = PyTuple_GET_SIZE(pool);
2696 elem = PyTuple_GET_ITEM(pool, index);
2743 elem = PyTuple_GET_ITEM(pool, index);
2763 return Py_BuildValue("O(On)", Py_TYPE(lz), lz->pool, lz->r);
2784 return Py_BuildValue("O(On)N", Py_TYPE(lz), lz->pool, lz->r, indices);
2793 Py_ssize_t n = PyTuple_GET_SIZE(lz->pool);
2820 PyObject *element = PyTuple_GET_ITEM(lz->pool, lz->indices[i]);
2891 pool = tuple(iterable)
2892 n = len(pool)
2894 yield tuple(pool[i] for i in indices)
2902 yield tuple(pool[i] for i in indices)
2906 pool = tuple(iterable)
2907 n = len(pool)
2910 yield tuple(pool[i] for i in indices)
2914 PyObject *pool; /* input converted to a tuple */
2939 PyObject *pool = NULL;
2943 pool = PySequence_Tuple(iterable);
2944 if (pool == NULL)
2946 n = PyTuple_GET_SIZE(pool);
2966 co->pool = pool;
2977 Py_XDECREF(pool);
2985 Py_XDECREF(co->pool);
3005 Py_VISIT(co->pool);
3015 PyObject *pool = co->pool;
3018 Py_ssize_t n = PyTuple_GET_SIZE(pool);
3026 /* On the first pass, initialize result tuple with pool[0] */
3032 elem = PyTuple_GET_ITEM(pool, 0);
3072 elem = PyTuple_GET_ITEM(pool, index);
3094 return Py_BuildValue("O(On)", Py_TYPE(lz), lz->pool, lz->r);
3114 return Py_BuildValue("O(On)N", Py_TYPE(lz), lz->pool, lz->r, indices);
3130 n = PyTuple_GET_SIZE(lz->pool);
3148 PyObject *element = PyTuple_GET_ITEM(lz->pool, lz->indices[i]);
3216 pool = tuple(iterable)
3217 n = len(pool)
3223 yield tuple(pool[i] for i in indices[:r])
3233 yield tuple(pool[i] for i in indices[:r])
3241 PyObject *pool; /* input converted to a tuple */
3242 Py_ssize_t *indices; /* one index per element in the pool */
3267 PyObject *pool = NULL;
3272 pool = PySequence_Tuple(iterable);
3273 if (pool == NULL)
3275 n = PyTuple_GET_SIZE(pool);
3309 po->pool = pool;
3323 Py_XDECREF(pool);
3331 Py_XDECREF(po->pool);
3344 res += PyTuple_GET_SIZE(po->pool) * sizeof(Py_ssize_t);
3352 Py_VISIT(po->pool);
3362 PyObject *pool = po->pool;
3366 Py_ssize_t n = PyTuple_GET_SIZE(pool);
3381 elem = PyTuple_GET_ITEM(pool, index);
3424 /* yield tuple(pool[k] for k in indices[:r]) */
3426 elem = PyTuple_GET_ITEM(pool, index);
3452 return Py_BuildValue("O(On)", Py_TYPE(po), po->pool, po->r);
3460 n = PyTuple_GET_SIZE(po->pool);
3481 po->pool, po->r,
3506 n = PyTuple_GET_SIZE(po->pool);
3540 PyObject *element = PyTuple_GET_ITEM(po->pool, po->indices[i]);