Re: help on pickle tool

2006-10-09 Thread Kirill Simonov
Hi, I'm somewhat late to this discussion, but as the author of PyYAML, I'd like to put my 2c in. On Thu, Oct 05, 2006 at 09:52:56PM -0700, virg wrote: > Is it possible to deserialize the data by java which serialized by > Python or is there any compatibility issue. Is there any equivalent > pic

Re: help on pickle tool

2006-10-06 Thread Paddy
Paddy wrote: > hanumizzle wrote: > > On 5 Oct 2006 22:25:58 -0700, Paddy <[EMAIL PROTECTED]> wrote: > > > > > You might try picking the data with a different pickle formatter that > > > your Java can use. Maybe an XML pickler > > > (http://www.gnosis.cx/download/Gnosis_Utils.More/Gnosis_Utils-1.2.

Re: help on pickle tool

2006-10-06 Thread Paddy
hanumizzle wrote: > On 5 Oct 2006 22:25:58 -0700, Paddy <[EMAIL PROTECTED]> wrote: > > > You might try picking the data with a different pickle formatter that > > your Java can use. Maybe an XML pickler > > (http://www.gnosis.cx/download/Gnosis_Utils.More/Gnosis_Utils-1.2.1.ANNOUNCE > > untested b

Re: help on pickle tool

2006-10-06 Thread Josh Bloom
If you must build your web ui in Java, then Jython is probably the best way for you to go. Inside of your java code you need to create a Jython instance. Then you can use the Jython pickle module to deserialize the data you are receiving. Last I remember Jython was equivalent to about CPython 2.2

Re: help on pickle tool

2006-10-06 Thread virg
Hi, Yes, using python client we are able deserialize data using r = pickle.loads(result). where result is a response from the server and r is a dictionary after deserialization. For serialisation at the server written in python using pickle.dumps(result, 2) Now we are developing web based Clien

Re: help on pickle tool

2006-10-06 Thread hanumizzle
On 6 Oct 2006 02:29:59 -0700, virg <[EMAIL PROTECTED]> wrote: > Yes your are right. I will send a dictionary object from the server to > the client. > I already have client which is written in python. But we are migrating > the python client which is a command line tool to Web UI client > (java).

Re: help on pickle tool

2006-10-06 Thread virg
Yes your are right. I will send a dictionary object from the server to the client. I already have client which is written in python. But we are migrating the python client which is a command line tool to Web UI client (java). If it is possible to call python function from java, i need to read mor

Re: help on pickle tool

2006-10-06 Thread hanumizzle
On 6 Oct 2006 02:03:07 -0700, virg <[EMAIL PROTECTED]> wrote: > At the server, based on client request it does some computations , it > sends the result as dictionary (serialized) to the client. If I interpret your message correctly, you are receiving a Python dictionary object from the server. Ye

Re: help on pickle tool

2006-10-06 Thread hanumizzle
On 10/6/06, Steve Holden <[EMAIL PROTECTED]> wrote: > I have to agree that YAML, having started out with simplicity in mind, > has become a monster that threatens to collapse under its own weight. > The very existence of JSON is a good indicator that YAML has failed to > meet its design goals for

Re: help on pickle tool

2006-10-06 Thread virg
At the server, based on client request it does some computations , it sends the result as dictionary (serialized) to the client. hanumizzle wrote: > On 6 Oct 2006 01:41:48 -0700, virg <[EMAIL PROTECTED]> wrote: > > Hi, > > The data is simple dictionary with one or more keys. If i use YAML at > >

Re: help on pickle tool

2006-10-06 Thread Steve Holden
Fredrik Lundh wrote: > MonkeeSage wrote: > > > >>YAML is a little more complex > > > a little? when did you last look at the spec? > > >>and a little more mature. > > > than JavaScript's expression syntax? are you sure you're not confusing > libraries with standards here? (has anyone e

Re: help on pickle tool

2006-10-06 Thread hanumizzle
On 6 Oct 2006 01:41:48 -0700, virg <[EMAIL PROTECTED]> wrote: > Hi, > The data is simple dictionary with one or more keys. If i use YAML at > the client (webui) do i have to change serialisation method to YAML at > server also. Without changing serialisation method at server, can i use > any of th

Re: help on pickle tool

2006-10-06 Thread virg
Hi, The data is simple dictionary with one or more keys. If i use YAML at the client (webui) do i have to change serialisation method to YAML at server also. Without changing serialisation method at server, can i use any of the deserialisation methods at the client. We cannot change the serialisat

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 23:43:50 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > > > On Oct 6, 1:28 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > when did you last look at the spec? > > I'm fairly versed in JS objects, having written 10 or so extensions for > firefox; but I've only used YAML for trivial ta

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
On Oct 6, 1:28 am, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > when did you last look at the spec? I'm fairly versed in JS objects, having written 10 or so extensions for firefox; but I've only used YAML for trivial tasks like config files. So I can't really say how they stack up in "the big pict

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 10/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > hanumizzle wrote: > > > I guess I'll keep an open mind. But I like editing YAML for the same > > reason that I like editing Python. > > JSON is almost identical to Python's expression syntax, of course, while > YAML isn't even close. Getting t

Re: help on pickle tool

2006-10-05 Thread Fredrik Lundh
hanumizzle wrote: > I guess I'll keep an open mind. But I like editing YAML for the same > reason that I like editing Python. JSON is almost identical to Python's expression syntax, of course, while YAML isn't even close. -- http://mail.python.org/mailman/listinfo/python-list

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 10/6/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > MonkeeSage wrote: > > > > YAML is a little more complex > > a little? when did you last look at the spec? > > > and a little more mature. > > than JavaScript's expression syntax? are you sure you're not confusing > libraries with standards he

Re: help on pickle tool

2006-10-05 Thread Fredrik Lundh
MonkeeSage wrote: > YAML is a little more complex a little? when did you last look at the spec? > and a little more mature. than JavaScript's expression syntax? are you sure you're not confusing libraries with standards here? (has anyone even managed to write a YAML library that's small a

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 23:19:18 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > > > On Oct 6, 1:06 am, hanumizzle <[EMAIL PROTECTED]> wrote: > > I'm happy with my Pythonesque YAML syntax, thank you. :) > > YAML is a little more complex, and a little more mature. But JSON > should not be ruled out. I actually

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
On Oct 6, 1:06 am, hanumizzle <[EMAIL PROTECTED]> wrote: > I'm happy with my Pythonesque YAML syntax, thank you. :) YAML is a little more complex, and a little more mature. But JSON should not be ruled out. I actually like JSON personally. Regards, Jordan -- http://mail.python.org/mailman/lis

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 22:54:46 -0700, MonkeeSage <[EMAIL PROTECTED]> wrote: > hanumizzle wrote: > > Why a subset? > > I don't think JSON is a subset of YAML. Apparent slip of the fingers by OP. From JSON website: JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for h

Re: help on pickle tool

2006-10-05 Thread MonkeeSage
hanumizzle wrote: > Why a subset? I don't think JSON is a subset of YAML. Regards, Jordan -- http://mail.python.org/mailman/listinfo/python-list

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 22:25:58 -0700, Paddy <[EMAIL PROTECTED]> wrote: > You might try picking the data with a different pickle formatter that > your Java can use. Maybe an XML pickler > (http://www.gnosis.cx/download/Gnosis_Utils.More/Gnosis_Utils-1.2.1.ANNOUNCE > untested by me). > You might also use a

Re: help on pickle tool

2006-10-05 Thread Paddy
virg wrote: > Hi, > i have client-server application which is written in python using > XMLRPC protocol. The existing client is a command line. Now client > application we are converting it as Web UI using java. I have seen some > problems in writing a java client. At the server for each reque

Re: help on pickle tool

2006-10-05 Thread hanumizzle
On 5 Oct 2006 21:52:56 -0700, virg <[EMAIL PROTECTED]> wrote: > Hi, > i have client-server application which is written in python using > XMLRPC protocol. The existing client is a command line. Now client > application we are converting it as Web UI using java. I have seen some > problems in w