Re: [Tutor] asyncio or threading

2016-02-28 Thread Alan Gauld
On 28/02/16 07:24, Zachary Ware wrote: >> (Not that I've seen too many examples, but the ones I have seen >> all used callbacks.) > > Could you point me towards some of those examples? As my followup post said they did actually mention coroutines as well, I just didn't pick up on it at the time.

Re: [Tutor] asyncio or threading

2016-02-27 Thread Zachary Ware
My apologies for taking so long to reply here again, it's been a busy couple of weeks. On Mon, Feb 15, 2016 at 7:18 PM, Alan Gauld wrote: > On 15/02/16 21:08, Zachary Ware wrote: >> This is not all asyncio can do. Callbacks are only one way of using it, the >> other, more common method is to use

Re: [Tutor] asyncio or threading

2016-02-17 Thread Alan Gauld
On 16/02/16 01:18, Alan Gauld wrote: Following up on my post. That's rarely a good thing :-( > Thanks for that, my asyncio tutorial was obviously seriously > one sided, it made no mention of coroutines but did promise > threading. I went back and looked again, it did mention coroutines, I was o

Re: [Tutor] asyncio or threading

2016-02-17 Thread Oscar Benjamin
On 16 February 2016 at 02:24, Danny Yoo wrote: > > where we pass function objects around to the function that will take a > long time to finish its work. We expect our callback functions to be > "called back" later by some party after some point. In many > asynchronous I/O systems, the responsib

Re: [Tutor] asyncio or threading

2016-02-16 Thread CMG Thrissur
Thank you all, especially Danny for enlightening about "synchronous" vs "asynchronous" style. Further the groups response has helped me in my decision making, and views about using asyncio. George ___ Tutor maillist - Tutor@python.org To unsubscrib

Re: [Tutor] asyncio or threading

2016-02-15 Thread Danny Yoo
> I just wanted an opinion on the subject, asyncio and threading both seem to > do the same job, but i feel threading is better because of the multiple ways > i can control it. > > Just want get the groups opinion based on there experience in using asyncio > or threading in real life problems. I

Re: [Tutor] asyncio or threading

2016-02-15 Thread Alan Gauld
On 15/02/16 21:08, Zachary Ware wrote: > This isn't quite accurate. asyncio only uses threading if you explicitly > tell it to use a thread for something, otherwise everything is run in > coroutines in the main thread, Thanks for that, my asyncio tutorial was obviously seriously one sided, it ma

Re: [Tutor] asyncio or threading

2016-02-15 Thread Zachary Ware
On Feb 15, 2016 1:25 PM, "Alan Gauld" wrote: > > On 15/02/16 13:09, CMG Thrissur wrote: > > > I just wanted an opinion on the subject, asyncio and threading both seam > > to do the same job, but i feel threading is better because of the > > multiple ways i can control it. > > They do similar jobs

Re: [Tutor] asyncio or threading

2016-02-15 Thread Zachary Ware
On Feb 15, 2016 1:12 PM, "CMG Thrissur" wrote: > > Hello, > > I just wanted an opinion on the subject, asyncio and threading both seam to do the same job, but i feel threading is better because of the multiple ways i can control it. > > Just want get the groups opinion based on there experience in

Re: [Tutor] asyncio or threading

2016-02-15 Thread Alan Gauld
On 15/02/16 13:09, CMG Thrissur wrote: > I just wanted an opinion on the subject, asyncio and threading both seam > to do the same job, but i feel threading is better because of the > multiple ways i can control it. They do similar jobs but asyncio uses threading in the background and I believe

[Tutor] asyncio or threading

2016-02-15 Thread CMG Thrissur
Hello, I just wanted an opinion on the subject, asyncio and threading both seam to do the same job, but i feel threading is better because of the multiple ways i can control it. Just want get the groups opinion based on there experience in using asyncio or threading in real life problems.