Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread Ant
This will work fine in simple cases and if the dictionaries are passed around in repr() form. If they are being passed pickled in some way, or the values in the dictionary are anything other than strings, lists, dictionaries or combinations of these then you will need something like Jython. -- h

Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread Kent Johnson
sandip desale wrote: > Hi, > > We have some tools which are developed in Python and using python dictionaries. Now for some new requirments we are using Java and want to use the existing dictionaries as both the tools are executed on the same platform. So we are trying to use the existing diction

Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread Ravi Teja
> I have a python dictionary file. I want to create a map of that dictionary > and want to use the same in my Java Program. > Can anybody please tell me how to use the same python dictionary in Java as > well as in Python. Try a JSON parser for Java http://www.json.org/ http://www.json.org/jav

Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread sandip desale
ED]> > To: python-list@python.org > Subject: Re: Parsing python dictionary in Java using JPython > Date: 26 May 2006 01:13:35 -0700 > > > It really depends on how you are trying to pass the dictionary across > to Java, what sort of objects are in the dictionary etc. Could y

Re: Parsing python dictionary in Java using JPython

2006-05-26 Thread Ant
It really depends on how you are trying to pass the dictionary across to Java, what sort of objects are in the dictionary etc. Could you provide some more background? BTW the Java implementation of Python is now called Jython (and has been for some years!). -- http://mail.python.org/mailman/list