Christophe Vandeplas christo...@vandeplas.com writes:
...
From the documentation I understand that deques are thread-safe:
Deques are a generalization of stacks and queues (the name is pronounced
“deck”
and is short for “double-ended queue”). Deques support thread-safe, memory
efficient
Hello,
I have a question about deque and thread-safety.
My application has multiple threads running concurrently and doing the
same action (downloading pages)
To know what has already been downloaded I created the variable:
seen = deque('', 1000) (keeps list of max 1000 urls in memory
Ok sorry for the mail,
I found the solution by using deque.count(url) that's available
starting from python 2.7
On Fri, Oct 12, 2012 at 2:40 PM, Christophe Vandeplas
christo...@vandeplas.com wrote:
Hello,
I have a question about deque and thread-safety.
My application has multiple threads
Hello,
Christophe Vandeplas christophe at vandeplas.com writes:
From the documentation I understand that deques are thread-safe:
Deques are a generalization of stacks and queues (the name is pronounced
“deck”
and is short for “double-ended queue”). Deques support thread-safe, memory