PyObject *
PyChannel_Receive(PyChannelObject *self)
{
    PyObject *ret = impl_channel_receive(self);
    STACKLESS_ASSERT();
    assert(!STACKLESS_UNWINDING(self));
    return ret;
}
PyObject *
PyChannel_Receive_nr(PyChannelObject *self)
{
    PyObject *ret;

    STACKLESS_PROPOSE_ALL();
    ret = impl_channel_receive(self);
    STACKLESS_ASSERT();
    return ret;
}
Beispiel #3
0
static PyObject *
channel_iternext(PyChannelObject *self)
{
	STACKLESS_GETARG();

	if (self->flags.closing && self->balance == 0) {
		/* signal the end of the iteration */
		return NULL;
	}
	STACKLESS_PROMOTE_ALL();
	return impl_channel_receive(self);
}
Beispiel #4
0
static PyObject *
channel_receive(PyObject *self)
{
	return impl_channel_receive((PyChannelObject*)self);
}