Python queue-like data structure

Revision en1, by nhtrnm, 2016-10-08 05:06:32

I recently decided to work with Python 3 and I have questions regarding queues. As far as I understand the queue in the queue library is adapted for multithreaded programs. I assume that that queue is not as efficient as the simple queue (if I am wrong please correct). Therefore, I found that there is a deque from collections library which resembles deque in C++. Am I right that that's what competitive Python programmers use (for example, BFS problems)?

Tags python, queue

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English nhtrnm 2016-10-08 05:06:32 489 Initial revision (published)