Re: Passing array from java to python

2011-06-03 Thread Marco Nawijn
On Jun 2, 11:54 am, loial wrote: > I need to pass some sort of array or hashmap from Java and read the > data in a python script (which will be called by the java class). Is > there any neater way  to do this other than just passing strings? I recently had to deal with the same problem, some bi-d

Re: Passing array from java to python

2011-06-02 Thread Ian Kelly
On Thu, Jun 2, 2011 at 4:47 AM, loial wrote: > Unfortunately using jpython or json are not options at the moment How about JPype? Or do the Java and Python need to be in separate processes? -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing array from java to python

2011-06-02 Thread Chris Rebert
On Thu, Jun 2, 2011 at 3:47 AM, loial wrote: > Unfortunately using jpython or json are not options at the moment What rules out JSON that does not also rule out the "just passing strings" approach? What about (*shudder*) XML? (Can't believe I just said that...) Cheers, Chris -- http://mail.pyt

Re: Passing array from java to python

2011-06-02 Thread Nitin Pawar
can you execute the java code from python and get the result stored as python variable os.system() On Thu, Jun 2, 2011 at 4:17 PM, loial wrote: > Unfortunately using jpython or json are not options at the moment > -- > http://mail.python.org/mailman/listinfo/python-list > -- Nitin Pawar --

Re: Passing array from java to python

2011-06-02 Thread loial
Unfortunately using jpython or json are not options at the moment -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing array from java to python

2011-06-02 Thread Chris Rebert
On Thu, Jun 2, 2011 at 2:54 AM, loial wrote: > I need to pass some sort of array or hashmap from Java and read the > data in a python script (which will be called by the java class). Is > there any neater way  to do this other than just passing strings? Jython?: http://www.jython.org/ Or dependi