From: Laurent C. <lau...@gm...> - 2011-01-31 17:20:25
|
Hi, I'm new in Jython and I'm facing some troubles: I'd like to call a method that have a (*values) as parameter How can I call it from java thru Jython? I have made a method like (String... values), but python receive an array of String as a single and first parameter of *values mymodule.py def log(self, *values): for mes in values: print mes public void callmymodule(String... values) ... mymodule().log("val1", "val2", "val3") output is : array(java.lang.String, [u'val1', u'val2', u'val3']) Does anyone can help me? Regards, Laurent. |