Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6851

Re: Passing array from java to python

References <088cff0c-ea3e-4574-9ca0-3c9b1393c89c@v31g2000vbs.googlegroups.com>
Date 2011-06-02 03:16 -0700
Subject Re: Passing array from java to python
From Chris Rebert <clp2@rebertia.com>
Newsgroups comp.lang.python
Message-ID <mailman.2385.1307009819.9059.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Jun 2, 2011 at 2:54 AM, loial <jldunn2000@gmail.com> 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 depending on how you define "just passing strings", JSON:
http://json.org/
http://docs.python.org/library/json.html

Cheers,
Chris

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Passing array from java to python loial <jldunn2000@gmail.com> - 2011-06-02 02:54 -0700
  Re: Passing array from java to python Chris Rebert <clp2@rebertia.com> - 2011-06-02 03:16 -0700
    Re: Passing array from java to python loial <jldunn2000@gmail.com> - 2011-06-02 03:47 -0700
      Re: Passing array from java to python Chris Rebert <clp2@rebertia.com> - 2011-06-02 04:07 -0700
      Re: Passing array from java to python Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-02 11:06 -0600
  Re: Passing array from java to python Marco Nawijn <nawijn@gmail.com> - 2011-06-03 11:54 -0700

csiph-web