Re: serializing data structures

2005-01-31 Thread Paul Rubin
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > I am trying to figure out the traps/issues about sending data structures > through a TCP/IP socket under the following circumstances: > > 1) there could be a different O/S on both side of the socket > 2) there could be a difference CPU architecure

Re: serializing data structures (Martin v. L?wis)

2005-01-31 Thread Philippe C. Martin
Thanks a lot. Regards, Philippe -- *** Philippe C. Martin SnakeCard LLC www.snakecard.com *** -- http://mail.python.org/mailman/listinfo/python-list

Re: serializing data structures

2005-01-31 Thread Philippe C. Martin
Thanks a lot. Regards, Philippe On Tue, 01 Feb 2005 00:20:01 +0100, Martin v. Löwis wrote: > Philippe C. Martin wrote: >> I once wrote something in C to do that, but since python usually has a >> solution for me > > If you use arbitrary data structures, you could use pickle or xmlrpcli

Re: serializing data structures

2005-01-31 Thread "Martin v. Löwis"
Philippe C. Martin wrote: I once wrote something in C to do that, but since python usually has a solution for me If you use arbitrary data structures, you could use pickle or xmlrpclib to marshal the data. If you know the data is restricted to a few well-known data types, you could use XDR (De

serializing data structures

2005-01-31 Thread Philippe C. Martin
Hi, I am trying to figure out the traps/issues about sending data structures through a TCP/IP socket under the following circumstances: 1) there could be a different O/S on both side of the socket 2) there could be a difference CPU architecure on both side of the socket 3) there could be a differ