python: send a list/dict over network
Posted
by facha
on Stack Overflow
See other posts from Stack Overflow
or by facha
Published on 2010-04-01T17:39:00Z
Indexed on
2010/04/01
17:43 UTC
Read the original article
Hit count: 313
python
Hi, everyone
I'm looking for an easy way of packing/unpacking data structures for sending over the network:
on client just before sending:
a = ((1,2),(11,22,),(111,222))
message = pack(a)
and then on server:
a = unpack(message)
Is there a library that could do pack/unpack magic? Thanks in advance
© Stack Overflow or respective owner