Martin Richard

Results 60 comments of Martin Richard

Hi, On the line : ``` await asyncio.sleep(1) ``` The loop is implicitly retrieved from asyncio.get_event_loop(). However, when calling asyncio.new_event_loop(), it doesn't set the default loop, returned by get_event_loop(). Thus,...

`asyncio.sleep()` accepts an optional explicit loop argument, as any function or object constructor in `asyncio`. When the optional `loop` argument is `None`, the loop is retrieved from `asyncio.get_event_loop()`. Indeed, reusable...

I agree: those examples are a bit misleading, and the documentation misses a general discussion about how and when asyncio should be used. I remember that the PEP (https://www.python.org/dev/peps/pep-3156/) helped...

Shouldn't create_subprocess_exec() and other related functions ensure that the ChildWatcher is working for the loop used during process creation (the one given in parameter or the default one)? It seems...

Thank you for your feedback. I pushed a commit which adds compatibility with Python 3.3. It adds a tmp_subprocess33 module which is the Popen patch backported for python 3.3. The...

Hi, I updated the PR: if my patch on Popen (submitted on b.p.o) is merged, asyncio will detect that it's able to make a NonBlockingPopen and use it, else, it...

Yes, this is this one: http://bugs.python.org/issue28287

Hi, I haven't looked in depth, but this: sock.settimeout(3) puts the socket in blocking mode. You must call ``sock.settimeout(0)`` or ``sock.set_blocking(False)``.

Hi, We do use `fork()` in a running loop: a master process regularly spawns workers and communicates with them using the loop. The solution that we came up with is...

I agree, it is fragile, but when I wrote this, this was an easy and efficient way to solve our use case. I am afraid that calling `stop()` then `run()`...