
On 05/06/2012 6:59am, Eli Bendersky wrote:
Can you add a testcase for this? ...
import multiprocessing as mp [81047 refs] c = mp.Condition() [88148 refs] with mp.Condition() as c: c.wait() ... <Press Ctrl-C> Traceback (most recent call last): File "C:\Repos\cpython-dirty\lib\multiprocessing\synchronize.py",
OK. BTW, I should have written UnboundLocalError not NameError: line 219, in wait ret = self._wait_semaphore.acquire(True, timeout) KeyboardInterrupt During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Repos\cpython-dirty\lib\multiprocessing\synchronize.py", line 227, in wait return ret UnboundLocalError: local variable 'ret' referenced before assignment [88218 refs]