Message10078

Author jdemoor
Recipients jdemoor
Date 2015-05-26.11:20:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1432639232.68.0.264721965645.issue2359@psf.upfronthosting.co.za>
In-reply-to
Content
threading.Condition().timeout() should accept a keyword argument named `timeout`. It works in CPython. In Jython, only a positional argument is accepted.

>>> import threading
>>> c = threading.Condition(threading.Lock())
>>> c.acquire()
>>> c.wait(timeout=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: wait() takes no keyword arguments
History
Date User Action Args
2015-05-26 11:20:32jdemoorsetrecipients: + jdemoor
2015-05-26 11:20:32jdemoorsetmessageid: <1432639232.68.0.264721965645.issue2359@psf.upfronthosting.co.za>
2015-05-26 11:20:32jdemoorlinkissue2359 messages
2015-05-26 11:20:31jdemoorcreate