[issue14487] Add pending() query method to Queue.Queue

Jeff McNeil report at bugs.python.org
Wed Apr 4 04:55:35 CEST 2012


Jeff McNeil <jeff at jmcneil.net> added the comment:

I looked at doing this. The empty() and full() methods are marked with a disclaimer stating they're likely to be removed at some point?

I'm curious, does just checking the value of <Queue>.unfinished_tasks satisfy the requirement? It could still easily be non-zero even if the queue itself is empty, signifying work in progress.  Another option might be to allow non-blocking use of join()?

----------
nosy: +mcjeff

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


More information about the Python-bugs-list mailing list