On Thu, 26 Feb 2015 17:47:53 +0100 Victor Stinner <[email protected]> wrote: > > It's already hard enough to explain asyncio to developers using > eventlet. I don't want to show them protocols. > > It's already very hard to justify that the code must be modified to > add a few yield-from. > > Why don't you want to give the choice to user between > transport/protocols and streams API?
I am just explaining you how to write a UDP server without a "yield from" facility. You can write such a facility if you want. Frankly, I have never found protocols difficult to understand: it's just event-driven programming... That said, if your UDP server only ever receives datagrams and never sends them, and doesn't do anything complicated with them, then a synchronous server is probably just as good (IMHO). Regards Antoine.
