Re: Using asyncio in event-driven network library

2013-12-25 Thread Christian Gollwitzer
Am 24.12.13 16:41, schrieb Tobias M.: On 23.12.2013 20:59, Terry Reedy wrote: What would be easiest for user-developers would be if someone were able to wrap a gui loop in a way to give it the needed interface, so the gui loop itself replaced and became the asyncio loop. That's a good idea, ma

Re: Using asyncio in event-driven network library

2013-12-24 Thread Chris Angelico
On Wed, Dec 25, 2013 at 2:41 AM, Tobias M. wrote: > On 23.12.2013 17:47, Chris Angelico wrote: >> while gtk.events_pending(): gtk.main_iteration() > > On 23.12.2013 20:59, Terry Reedy wrote: >> >> I think tk(inter) has 'run pending events' or something. > > I didn't know functions like this exist

Re: Using asyncio in event-driven network library

2013-12-24 Thread Tobias M.
Thanks for your answers! I didn't have the time to test any of your suggestions so far but they already gave me something to think about. At least now I'm much more clearer on what I am actually looking for. On 23.12.2013 20:59, Terry Reedy wrote: What would be easiest for user-developers wou

Re: Using asyncio in event-driven network library

2013-12-23 Thread Terry Reedy
On 12/23/2013 11:47 AM, Chris Angelico wrote: On Mon, Dec 23, 2013 at 10:50 PM, Tobias M. wrote: I am currently writing an event-driven client library for a network protocol [1] and chose to use the new asyncio module. I have no experience with asynchronous IO and don't understand all the conce

Re: Using asyncio in event-driven network library

2013-12-23 Thread Chris Angelico
On Mon, Dec 23, 2013 at 10:50 PM, Tobias M. wrote: > I am currently writing an event-driven client library for a network protocol > [1] and chose to use the new asyncio module. I have no experience with > asynchronous IO and don't understand all the concepts in asyncio yet. So I'm > not sure if as

Using asyncio in event-driven network library

2013-12-23 Thread Tobias M.
Hello, I am currently writing an event-driven client library for a network protocol [1] and chose to use the new asyncio module. I have no experience with asynchronous IO and don't understand all the concepts in asyncio yet. So I'm not sure if asyncio is actually the right choice . My goal: