I am experiencing a problem that can best be explained with the =
following code snippet:
1 def g(*c):
2 print c
4 def f(*c):
7 f(1,2,3) =20
If I run this with jython, I get the expected output "(1, 2, 3)", but if =
I compile the source to a .class file using jythonc and then run it with =
java, I get the following error message:
TypeError: g() argument after ** must be a dictionary
Removing the asterisk from line 5, however, it works both ways, but of =
course with different semantics - it gives me "((1, 2, 3),)" as =
Is there a problem with using the asterisk operator to pass on variable =
arguments when using jythonc or could I be doing something wrong?
Any help is greatly appreciated.