no return value for threading.Condition.wait(timeout)?
Aahz
aahz at pythoncraft.com
Fri Jul 17 01:08:31 EDT 2009
In article <mailman.3221.1247757153.8015.python-list at python.org>,
Gabriel Rossetti <gabriel.rossetti at arimaz.com> wrote:
>
>I am using threading.Condition.wait(timeout) and was surprised to see
>that there is no return value nor an exception when wait() is used w/ a
>timeout. How am I supposed to know if it was notified or if it timed out?
What are you trying to do? Maybe your purpose would be better suited to
using a Queue? (Yes, Queue is a hammer in search of a nail, but most
threading problems are easier if you treat them as nails.)
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
More information about the Python-list
mailing list