Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
>> What about old ASCII?    The data is large .it also contains floats & double , so ascii will cause two problems -> loss of precision and the data will bloat  --shekhar -- http://mail.python.org/mailman/listinfo/python-list

Re: pickling and endianess

2006-08-24 Thread Gabriel Genellina
At Friday 25/8/2006 03:37, Chandrashekhar Kaushik wrote: I dont think i really need that much . Just need to be able to send data across the network and then retrieve it properly independent of the architecture at the remote end :) What about old ASCII? Gabriel Genellina Softlab SRL

Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
The pickletools.py seems to be giving cool info on the same ( the PM virual machine and all ). Will try to salvage something out of that. I dont think i really need that much . Just need to be able to send data across the network and then retrieve it properly independent of the architecture at the

Re: pickling and endianess

2006-08-24 Thread Gabriel Genellina
At Friday 25/8/2006 03:17, Chandrashekhar Kaushik wrote: I am actually looking to implement serialization routines in C++. An am facing the problem of how to tackle endianess and sizeof issues. Could you give me a overview of how pickling is done in python ? Reading pickle.py is obviously the

Re: pickling and endianess

2006-08-24 Thread Fredrik Lundh
Chandrashekhar Kaushik wrote: > Thank you for the information. > A request though. > > I am actually looking to implement serialization routines in C++. > An am facing the problem of how to tackle endianess and sizeof issues. > > Could you give me a overview of how pickling is done in python ? R

Re: pickling and endianess

2006-08-24 Thread Chandrashekhar Kaushik
Thank you for the information.A request though.I am actually looking to implement serialization routines in C++.An am facing the problem of how to tackle endianess and sizeof issues.Could you give me a overview of how pickling is done in python ? Reading pickle.py is obviously the option , but its

Re: pickling and endianess

2006-08-24 Thread Tim Peters
[Chandrashekhar kaushik] > Can an object pickled and saved on a little-endian machine be unpickled > on a big-endian machine ? Yes. The pickle format is platform-independent (native endianness doesn't matter, and neither do the native sizes of C's various integer types). > Does python handle thi

Re: pickling and endianess

2006-08-24 Thread Fredrik Lundh
Chandrashekhar kaushik wrote: > Can an object pickled and saved on a little-endian machine be unpickled > on a big-endian machine ? yes. the format uses a known byte order. -- http://mail.python.org/mailman/listinfo/python-list

pickling and endianess

2006-08-24 Thread Chandrashekhar kaushik
Can an object pickled and saved on a little-endian machine be unpickledon a big-endian machine ? Does python handle this in some manner  , by say having a flag to indicatethe endianess of the machine on which the object was pickled ?  And then using this flag to decide how that data will be unpick