[BangPypers] Packing string and character

Baiju M mbaiju at zeomega.com
Sat May 29 10:44:28 CEST 2010


On Sat, May 29, 2010 at 1:47 PM, murugadoss <murugadoss2884 at gmail.com> wrote:
> Hi all,
> I want to know how to pack a set of character or string, for example
>
> Data = ['Date','time',year',23] ( data can be any combination of
> string,character,integer ..etc)
>
> Pack the data to single message to send in network,

You mean "Serialization" ?
http://en.wikipedia.org/wiki/Serialization

Please look at pickle module:
http://docs.python.org/library/pickle.html

Regards,
Baiju M


More information about the BangPypers mailing list