From: Russo, T. <to...@st...> - 2002-02-12 17:43:30
|
Hi, When I run the following: <file name="demo.py"> import thread thread.start_new_thread(lambda x,y:(x,y), (1,2)) # succeeds thread.start_new_thread(lambda x:x, (1)) # fails </file> I get: <output> Traceback (innermost last): File "demo.py", line 4, in ? TypeError: start_new_thread(): 2nd arg can't be coerced to org.python.core.PyTuple </output> Is there some reason I should be able to use a function of two arguments when starting a thread, but not a function of one argument? Does jython not recognize (1) as a tuple in this case? thanks _t |