[Twisted-Python] deferred generators in inline callbacks

2011-12-20 Thread Алексей Кирпичников
Hi. I have a question about inline callbacks usage. Let's assume I have an iterator that works synchronously. I want to wrap this generator to work asynchronously in threads: def some_generator(): cursor = make_iterator() # cursor's 'next' method uses some nasty blocking I/O while 1:

Re: [Twisted-Python] deferred generators in inline callbacks

2011-12-20 Thread exarkun
On 06:24 pm, alex.k...@gmail.com wrote: >Hi. > >I have a question about inline callbacks usage. > >Let's assume I have an iterator that works synchronously. I want to >wrap this generator to work asynchronously in threads: > >def some_generator(): >cursor = make_iterator() # cursor's 'next' met

Re: [Twisted-Python] [Twisted] #5437: sys.settrace(None) in process.py raises RuntimeError in debugger

2011-12-20 Thread Bob Novas
Well, what wing's debugger does is to raise RuntimeError, and NOT CONTINUE to execute that path. So the child never runs. That's bad! What more can I say? I have to comment out that line every time I run on a new installation if I want to debug in linux (Windows doesn't go down that code path).