I have a queue as:
from Queue import Queue
myqueue = Queue()
How do I remove lets say 10 elements from the queue? I currently have the following:
for i in range(10):
myqueue.get()
is there a beautiful way for this? Currently the dummy variable i is not being used, is there a way to avoid that from happening?