converting to string
josh at chatgris.com
Wed Aug 4 09:34:32 CEST 2004
Actually, I believe that marshal is the most efficient method to convert a python object to a string.
On August 4, 2004 03:03 am, Ajay Brar wrote:
> how do i go about converting a Python object or tuple to a string.
> i am currently doing
> import cPickle as pickle
> str = pickle.dumps(obj)
> is that efficient? is that the best way to do it?
> Ajay Brar
> CS Honours 2004
> Smart Internet Technology Research Group
More information about the Python-list