Re: [python-tulip] Best practice for managing loop: don't close it (really!?)

2015-01-18 Thread Victor Stinner
Le lundi 19 janvier 2015, Luciano Ramalho luci...@ramalho.org a écrit : Can I conclude that in practice, close() should not be called at all unless your own code actually created the loop instead of merely fetching it with asyncio.get_event_loop()? Event loops must be closed. The first call

[python-tulip] Re: Best practice for managing loop: don't close it (really!?)

2015-01-18 Thread Luciano Ramalho
Ok, that makes sense, thanks! On Sunday, January 18, 2015, Guido van Rossum gu...@python.org wrote: Yes. It's a bit like memory allocation -- if you don't own it, don't free it. On Sun, Jan 18, 2015 at 3:41 PM, Luciano Ramalho luci...@ramalho.org

Re: [python-tulip] Best practice for managing loop: don't close it (really!?)

2015-01-18 Thread Guido van Rossum
Yes. It's a bit like memory allocation -- if you don't own it, don't free it. On Sun, Jan 18, 2015 at 3:41 PM, Luciano Ramalho luci...@ramalho.org wrote: Like Victor Stinner in this bug report [1], I was craving for a context-manager enabled loop so I did not forget to close() it. But

[python-tulip] Best practice for managing loop: don't close it (really!?)

2015-01-18 Thread Luciano Ramalho
Like Victor Stinner in this bug report [1], I was craving for a context-manager enabled loop so I did not forget to close() it. But reading Guido's last message rejecting that bug, it seems callign loop.close() is only recommended if you own the loop -- while most asyncio users probably don't own

[python-tulip] New release of API-Hour

2015-01-18 Thread Ludovic Gasc
Hi, I've did a new release of API-Hour based on your comments you sent me privately. As a remember, API-Hour helps you to create AsyncIO (HTTP, SSH) daemons, with multiprocessing pattern included. The changes: 1. An all-in-one Python script example, to test quickly API-Hour without