Lines Matching refs:state
39 _PyIO_State *state = IO_STATE();
40 if (state != NULL)
41 PyErr_SetString(state->unsupported_operation, message);
49 "unusable state.\n"
515 PyObject *state = PyObject_CallMethodNoArgs(self->decoder,
517 if (state == NULL)
519 if (!PyTuple_Check(state)) {
521 "illegal decoder state");
522 Py_DECREF(state);
525 if (!PyArg_ParseTuple(state, "OK;illegal decoder state",
528 Py_DECREF(state);
532 Py_DECREF(state);
546 state: object
552 PyObject *state)
560 if (!PyTuple_Check(state)) {
561 PyErr_SetString(PyExc_TypeError, "state argument must be a tuple");
564 if (!PyArg_ParseTuple(state, "OK;setstate(): illegal state argument",
674 * dec_flags is the second (integer) item of the decoder state and
1790 PyObject *state = PyObject_CallMethodNoArgs(self->decoder,
1792 if (state == NULL)
1795 * len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
1797 if (!PyTuple_Check(state)) {
1799 "illegal decoder state");
1800 Py_DECREF(state);
1803 if (!PyArg_ParseTuple(state,
1804 "OO;illegal decoder state", &dec_buffer, &dec_flags))
1806 Py_DECREF(state);
1812 "illegal decoder state: the first item should be a "
1815 Py_DECREF(state);
1820 Py_DECREF(state);
2370 This is for a few decoders such as utf-16 for which the state value
2548 /* Restore the decoder to its state from the safe start point. */
2686 /* Decoder state will be restored at the end */
2700 "illegal decoder state"); \
2704 if (!PyArg_ParseTuple(_state, "Oi;illegal decoder state", \
2712 "illegal decoder state: the first item should be a " \