ia a Task on some worker, not just spawned implicitly
and unmanaged!
It would be cool to find asyncio gurus interested in this very natural goal.
Your help and ideas would be very much appreciated.
best regards
--
Valery
--
https://mail.python.org/mailman/listinfo/python-list
ith_max_workers(tasks, *, loop=None, max_workers=5,
timeout=None):
loop = loop if loop is not None else asyncio.get_event_loop()
workers = []
pending = set()
done = asyncio.Queue(maxsize=max_workers, loop=loop) # Valery: respect
the "loop" parameter
exhausted = False
them all at once,
but to instantiate and to address them one by one as the running tasks are
completed.
best regards
--
Valery
--
https://mail.python.org/mailman/listinfo/python-list
a shared resource.
P.S. sorry, I found your answer only now.
reagrds
--
Valery
--
http://mail.python.org/mailman/listinfo/python-list
ommunication is done.
In contrast, your case looks for me that you rather propose to
initiate the connection each time a new job comes from queue for an
execution.
Regards,
Valery
--
http://mail.python.org/mailman/listinfo/python-list
t "sending data over port # %s" % port
if __name__ == "__main__":
ports=((4001,4002, 4003), )
p = Pool(3, port_initializer, ports) # oops... :-)
some_data_to_send = range(20)
p.map(use_connection, some_data_to_send)
best regards
--
Valery A.Khamenya
--
http
on maps then you have a tiny effort to convert
your code into a MULTIprocessing one :)
just that.
Kind regards.
Valery
--
http://mail.python.org/mailman/listinfo/python-list
u know, what I mentioned
> here:http://groups.google.com/group/unladen-swallow/browse_thread/thread/9...
> )
yes, I've understood the idea explained by you there.
regards,
Valery
--
http://mail.python.org/mailman/listinfo/python-list
(f, xrange(10)))
# switch to ps and see how fast your free memory is getting
wasted...
print res
##
Kind regards
Valery
--
http://mail.python.org/mailman/listinfo/python-list
OK, I've filed a bug. Because Python2.5 works fine here.
--
Valery
--
http://mail.python.org/mailman/listinfo/python-list
ck (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'NullHandler'
$ uname -a
Linux vaktop 2.6.31-11-generic #38-Ubuntu SMP Fri Oct 2 11:55:55 UTC
2009 i686 GNU/Linux
--
regards
Valery
--
http://mail.python.org/mailman/listinfo/python-list
ws :-/
regards
Valery
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
things like urllib.quote(u"пиво Müller ") fail with error message:
: u'\u043f'
Similarly with urllib2.
Anyone got a hint?? I need it to form the URI containing non-ascii chars.
thanks in advance,
best regards
--
Valery
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
just googled both the web and groups. Who could believe in that:
nothing simple, helpful and working concerning SOCKS5 support in
python.
Anyone got success here?
Regards,
Valery.
--
http://mail.python.org/mailman/listinfo/python-list
14 matches
Mail list logo