[issue18277] Queue is empty right after put from the same process/thread

Richard Oudkerk report at bugs.python.org
Fri Jun 21 22:26:40 CEST 2013


Richard Oudkerk added the comment:

This is a very similar issue to #17985.

While it may seem counter-intuitive, I don't see how it makes any difference.  Another thread/process might remove the item before you can get it.

I find it very difficult to imagine a real program where you can safely use get_nowait() without being prepared to handle an Empty exception.

----------

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


More information about the Python-bugs-list mailing list