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

Richard Oudkerk report at bugs.python.org
Sat Jun 22 00:47:25 CEST 2013


Richard Oudkerk added the comment:

Why would you use a multi-process queue to "pass messages from one part of the program to another part, in the same process and thread"?  Why not just use a deque?

Is this something you actually did, or are you just trying to come up with a plausible example?

And, of course, if you are sure there must be an item available, you could just use get() instead of get_nowait().

----------

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


More information about the Python-bugs-list mailing list