Hi,

I just want to translate this classic code:

ml = [i for i in range(100)]

while ml:
    element = ml.pop()
    print(element)

to futures for running pop asynchronously. I started, but I don't see how to do that. This [https://gist.github.com/4455376] is the first attempt, but it fails when I put more elements on ml (that is ml is growing).

Any hints?

Thanks in advance,
Xan.
_______________________________________________
concurrency-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/concurrency-sig

Reply via email to