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


Groups > comp.lang.python > #6851

Re: Passing array from java to python

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'python': 0.08; 'subject:java': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'subject:python': 0.14; 'class).': 0.16; 'subject:array': 0.16; 'cc:addr:python-list': 0.17; 'cheers,': 0.19; '(which': 0.20; 'header:In-Reply-To:1': 0.21; 'java': 0.21; 'thu,': 0.22; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'received:209.85.213.46': 0.23; 'received:mail- yw0-f46.google.com': 0.23; 'pass': 0.27; 'script': 0.27; 'message- id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.30; 'array': 0.30; 'sort': 0.31; 'define': 0.31; 'url:library': 0.31; 'chris': 0.34; 'there': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'received:209.85.213': 0.37; 'url:docs': 0.37; 'url:python': 0.38; 'subject:from': 0.38; 'url:org': 0.38; 'data': 0.38; 'subject:: ': 0.38; 'some': 0.38; 'called': 0.39; 'received:209': 0.39; '"just': 0.84; 'sender:addr:chris': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=q3sdf6Wzq9uNmygpTyN10yAi8YE7f2PLY3QgbZIFe5A=; b=Vn/v2rT3f432ZuO0qIx2rVRIp1PRxPeDPKWZRCK7QUVGQo2jtOPjsYKeDf6YW7l4/x osWhQpS/72xP0D9SBpmIrEv8djtSiorWvpBhLQJsBzm+L0GCcVuMZVbBG9QQW8jBlWos 78/KuvXA4E5r1VUaJapS1JSIodx+g9vVlVvp4=
DomainKey-Signature a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=IWSAHKOnTqlv/+YhXm3m8K3PjP2ebHE/XpM52YKDEWdQxYlVZ+ceFaYY/zi+MO193X CZjVImq4dojk9it6wDZDrCQEWsgjBzdbN2x4Xcz4pRdmdKQk+wR3Td706Ovt354MBWEO AQHKBef9RSYWafQfL65dPtSHL0XD5VbPHqB9s=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <088cff0c-ea3e-4574-9ca0-3c9b1393c89c@v31g2000vbs.googlegroups.com>
References <088cff0c-ea3e-4574-9ca0-3c9b1393c89c@v31g2000vbs.googlegroups.com>
Date Thu, 2 Jun 2011 03:16:56 -0700
X-Google-Sender-Auth pIeYesa0acU5A4NCN6KGDl183mY
Subject Re: Passing array from java to python
From Chris Rebert <clp2@rebertia.com>
To loial <jldunn2000@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2385.1307009819.9059.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 82.94.164.166
X-Trace 1307009819 news.xs4all.nl 49176 [::ffff:82.94.164.166]:48876
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6851

Show key headers only | 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