Hi,
The question is in the title, is there any coroutine framework available
for Python 3.2+ ? I checked gevent and eventlet but none of them seems
to have a Py3k version.
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for your help, I'll test this.
2012/6/8 Peter Otten <__pete...@web.de>
> Ivars Geidans wrote:
>
> > def append_node(n, l, ls):
> > ls.append(n)
> > for c in [nc for nc in l if nc.parent is n]:
> > append_node(c, l, ls)
> > return ls
> >
> > def sort_nodes(l):
> > ls
Hi,
Having a list of objet with a parent_id attribute pointing to a parent, I
want to order this list like this :
[Parent #1, Child #1.1, Child#1.1.1, Child#1.1.2, Child#1.2, Parent #2,
Child #2.1, ...]
Any clue on how to do this ?
Thanks,
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've a list of python objects with dates attributes. This list is ordered
by one of these date. Elements mandatory follow each other :
Element #1 Element #2 Element #3
|-|--|--|
Now, I want to "insert" an
Hi,
I'm writing a multiprocess server with Python 3.2 and the multiprocessing
module. Here is my current implementation :
- Main process: select() on a list of server sockets (different ips of the
host, ssl or not, etc)
- Children process : When they get a signal (in fact, a message in a pipe),
t
Le 08/04/2012 02:56, Vinay Sajip a écrit :
Thibaut gmail.com> writes:
This is exactly what I wanted, it seems perfect. However I still have a
question, from what I understood,
I have to configure logging AFTER creating the process, to avoid
children process to inherits the logging con
Le 07/04/2012 16:47, Vinay Sajip a écrit :
Thibaut gmail.com> writes:
Ok, I understand what happenned. In fact, configuring the logging before
forking works fine. Subprocess inherits the configuration, as I thought.
The problem was that I didn't passed any handler to the Queue
Le 07/04/2012 11:22, Thibaut DIRLIK a écrit :
Hi,
I'm currently writing a multiprocess applications with Python 3.2 and
multiprocessing module. My subprocesses will use a QueueHandler to log
messages (by sending them to the main process, which uses a
QueueListener). However, if loggi
Hi,
I'm currently writing a multiprocess applications with Python 3.2 and
multiprocessing module. My subprocesses will use a QueueHandler to log
messages (by sending them to the main process, which uses a QueueListener).
However, if logging is already configured when I create the subprocesses,
the