Lines Matching refs:element
321 PyObject *element;
328 element = PyLong_FromUnsignedLong(self->state[i]);
329 if (element == NULL)
331 PyTuple_SET_ITEM(state, i, element);
333 element = PyLong_FromLong((long)(self->index));
334 if (element == NULL)
336 PyTuple_SET_ITEM(state, i, element);
348 unsigned long element;
364 element = PyLong_AsUnsignedLong(PyTuple_GET_ITEM(state, i));
365 if (element == (unsigned long)-1 && PyErr_Occurred())
367 new_state[i] = element & 0xffffffffUL; /* Make sure we get sane state */
393 implemented by swapping the ith element with another element ranging
394 from 0 to i inclusive. That allows the element to have the possibility
396 state, the swap element is ranged from 0 to i-1 inclusive. This assures
397 that each element gets moved at least once.
401 each element at position i. Successive calls are then guaranteed to