Re: Object Diffs

2011-08-09 Thread Irmen de Jong
On 08-08-11 21:50, Croepha wrote: Hello Python list: I am doing research into doing network based propagation of python objects. In order to maintain network efficiency. I wan't to just send the differences of python objects, I was wondering if there was/is any other research or development in

Re: Object Diffs

2011-08-08 Thread Steven D'Aprano
Croepha wrote: > Hello Python list: > > I am doing research into doing network based propagation of python > objects. In order to maintain network efficiency. I wan't to just > send the differences of python objects, Can you explain in more detail what you mean? Are there constraints on what t

Re: Object Diffs

2011-08-08 Thread Chris Angelico
On Tue, Aug 9, 2011 at 1:23 AM, Terry Reedy wrote: > I have no idea how stable and local pickles are, but I know they were not > designed for diff-ing. Json or yaml representations might do better if > applicable. > In terms of stability, you'd probably have to have a rule that dictionaries are s

Re: Object Diffs

2011-08-08 Thread python
Croepha, You may find it simpler and sufficiently efficient to compress your objects in whatever format they exist (pickle, json, xml, etc) and send the compressed equivalents vs. trying to diff on side and reassemble on the other side. Malcolm -- http://mail.python.org/mailman/listinfo/python-l

Re: Object Diffs

2011-08-08 Thread Terry Reedy
On 8/8/2011 3:50 PM, Croepha wrote: Hello Python list: Hi I am doing research into doing network based propagation of python objects.In order to maintain network efficiency. I want to just send the differences of python objects, I was wondering if there was/is any other research or developmen

Re: Object Diffs

2011-08-08 Thread Dan Stromberg
You probably need a recursive algorithm to be fully general, and yes, looking at pickle might be a good place to start. Note that pickle can't pickle everything, but it can handle most things. Also check out NX - not the CPU feature, but the (re)transmission compressing software (there are two di

Re: Object Diffs

2011-08-08 Thread Chris Angelico
On Mon, Aug 8, 2011 at 8:50 PM, Croepha wrote: > I am doing research into doing network based propagation of python > objects.  In order to maintain network efficiency. I wan't to just > send the differences of python objects You could send pickled versions of each of the object's attributes, rat

Object Diffs

2011-08-08 Thread Croepha
Hello Python list: I am doing research into doing network based propagation of python objects. In order to maintain network efficiency. I wan't to just send the differences of python objects, I was wondering if there was/is any other research or development in this area? I was thinking that I cou