You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hang when calling get() on an empty queue in the queue module #47388
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2008-06-19.12:49:02.621>created_at=<Date2008-06-19.08:08:16.445>labels= ['type-bug', 'invalid']
title='Hang when calling get() on an empty queue in the queue module'updated_at=<Date2009-03-27.16:07:11.459>user='https://bugs.python.org/slash2314'
This behavior appears in Python 3.0b1. If you use queue.Queue and call
the get method on the empty queue, it appears to hang. The same
behavior seems to be evident in the PriorityQueue too.
Activity
slash2314 commentedon Jun 19, 2008
This behavior appears in Python 3.0b1. If you use queue.Queue and call
the get method on the empty queue, it appears to hang. The same
behavior seems to be evident in the PriorityQueue too.
amauryfa commentedon Jun 19, 2008
2.5 has the same behavior:
Did you get different results?
benjaminp commentedon Jun 19, 2008
It's intended that Queue.get blocks until something is put on the Queue.
If you don't want it to block use Queue.get(False).
tazle commentedon Mar 27, 2009
Is it also intended that Queue.get() eats SIGINTs, requiring one to kill
the process with something heavier?