jython lambda function <p>May I know why the following code does not print out <code>[1,2,3,1,2,3]</code>. Instead, it throws an exception. Could you show me how to make it work.</p> <pre><code>x = [1,2,3] print apply(lambda x: x * 2, (x)) </code></pre> <p>if I try the following, it works:</p> <pre><code>test1 = lambda x: x * 2 print test1(x) </code></pre>