From: mohamad <re...@bu...> - 2018-11-23 19:39:30
|
New submission from mohamad <moh...@gm...>: how to pass **kwargs form java to python using Jython . The python method : def start_trex (self, f, d, block_to_success = True, timeout = 40, user = None, trex_development = False, **trex_cmd_options): My java code : Map<String, Object> kwargs = new HashMap<>(); kwargs.put("cfg","/etc/trex_cfg_stf.yaml"); boolean z =objectTrex.start_trex("astf/http_simple.py",20,true,40,"momham",true,kwargs); I'm getting the following error : Exception in thread "MainThread" TypeError: start_trex() takes at most 7 arguments (8 given) although i passing just 7 arguments I think the problem with the way of passing the **kwargs argument ---------- components: None messages: 12183 nosy: mohamad.mahajna severity: normal status: open title: passing**kwargs form java to python using Jython versions: Jython 2.7 _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue2717> _______________________________________ |