|
From: Mats W. <ma...@la...> - 2002-02-12 19:20:42
|
>thread.start_new_thread(lambda x:x, (1)) # fails > Does jython not recognize (1) as a tuple in this case? That's because it's not a tuple. Since () is also an arithmetic precendence thingy, you need a bit more to tell Python/Jython it's a tuple. Try (1,) Yes, the comman is required in Python for a single-element tuple. |