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

2012-04-03 Thread Jeff McNeil
Jeff McNeil 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 .unfinished_tasks satisfy the requirement? It could still easily be non-zero even

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

2012-04-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> duplicate status: open -> closed superseder: -> Add timeout parameter to Queue.join() ___ Python tracker ___ ___

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

2012-04-03 Thread Nick Coghlan
Changes by Nick Coghlan : -- components: +Library (Lib) stage: -> needs patch type: -> enhancement versions: +Python 3.3 ___ Python tracker ___

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

2012-04-03 Thread Nick Coghlan
New submission from Nick Coghlan : The task management API in the Queue module doesn't let you check to see if there are any pending tasks still being processed. A pending() query API (analagous to empty() and full()) would resolve that problem. The use case is for a process that terminates w