<div dir="ltr">Hi guys,<div><br></div><div>I'm writing some code that uses `threading.Condition` and I found that I want to access condition._waiters. I want to do it in two different parts of my code for two different reasons:</div><div><br></div><div>1. When shutting down the thread that manages the condition, I want to be sure that there are no waiters on the condition, so I check whether `condition._waiters` is empty before exiting, otherwise I'll let them finish and only then exit.</div><div><br></div><div>2. When I do notify_all, I actually want to do as many notify actions as needed until there's a full round of notify_all in which none of the conditions for any of the waiters have been met. Only then do I want my code to continue. (It's because these waiters are waiting for resources that I'm giving them, each wanting a different number of resources, and I want to be sure that all of them are starved before I get more resources for them.)</div><div><br></div><div>Do you think it'll be a good idea to add non-private functionality like that to threading.Condition?</div><div><br></div><div><br></div><div>Thanks,</div><div>Ram.</div></div>