Send a Class Object by Socket

Skip Montanaro skip at pobox.com
Tue Jan 8 12:19:56 EST 2002


    Hugo>  File "./serv2.py", line 41, in ?
    Hugo>     CliSock.send(cPickle.dumps(vp_master) )
    Hugo> cPickle.PicklingError: Cannot pickle <type 'array'> objects.

    Hugo> Do you know ho to picke an array ?

Check the library reference manual section for the pickle module:

    http://www.python.org/doc/current/lib/module-pickle.html

Pay particular attention to the subsection near the bottom of the page
entitled "Pickling and unpickling extension types".

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list