Issue1988

classification
Title: API for threading.condition fails to accept *args for acquire
Type: Severity: normal
Components: Library Versions: 2.7a2
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, pjenvey, zzzeek
Priority: Keywords:

Created on 2012-11-19.16:22:35 by zzzeek, last changed 2013-02-08.20:01:36 by pjenvey.

Messages
msg7524 (view) Author: mike bayer (zzzeek) Date: 2012-11-19.16:23:35
e.g.:


import threading

mutex = threading.Lock()
cond = threading.Condition(mutex)

cond.acquire(False)


Docs for condition.acquire:

http://docs.python.org/2/library/threading.html#threading.Condition.acquire


acquire(*args)

    Acquire the underlying lock. This method calls the corresponding method on the underlying lock; the return value is whatever that method returns.
msg7525 (view) Author: mike bayer (zzzeek) Date: 2012-11-19.16:24:09
in
msg7526 (view) Author: mike bayer (zzzeek) Date: 2012-11-19.16:24:36
current output:

classic$ ~/jython2.7a2/jython test.py
Traceback (most recent call last):
  File "test.py", line 6, in <module>
    cond.acquire(False)
TypeError: acquire() takes exactly one argument (1 given)
msg7646 (view) Author: Philip Jenvey (pjenvey) Date: 2013-02-08.20:01:36
fixed in f9c6dc60c4eb
History
Date User Action Args
2013-02-08 20:01:36pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg7646
nosy: + pjenvey
2012-11-19 16:25:22fwierzbickisetnosy: + fwierzbicki
2012-11-19 16:24:37zzzeeksetmessages: + msg7526
2012-11-19 16:24:09zzzeeksetmessages: + msg7525
versions: + 2.7a2, - 2.7a1
2012-11-19 16:23:36zzzeeksetmessages: + msg7524
2012-11-19 16:22:35zzzeekcreate