[issue26958] Suggestion to imporve queue.full reliability

Sudharsan R report at bugs.python.org
Wed May 4 15:50:25 EDT 2016


Sudharsan R added the comment:

Just add on to it..
q=queue.Queue()
with q.not_full:
	q.put_nowait(1)

this will hang. So if we acquire the not_full while computing size, all puts will wait. Same is the case for q.empty() and q.not_empty method and condition respectively.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26958>
_______________________________________


More information about the Python-bugs-list mailing list