View Single Post
  #2  
Old 08-16-2005, 01:26 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

To send objects across the network you will need to use the Python pickle module. This module will serialize any object into a string, and can recreate it. Here is some code that will take an object and serialize it to a string:
Code:
import pickle
s = pickle.dumps(obj)
The following code will convert a pickle string into an object:
Code:
import pickle
obj = pickle.loads(s)
Let me know if you need more help
Reply With Quote