general question about <network>.send()
Hello,
I succeeded in sending a list of primitives, i.e., a list of characters, or a list of integers. but i'm running into problems sending a list of objects.
for example, is it possible for me to send:
class People_cfg(object):
def __init__(self):
self.active=0
self.name=""
self.sex="f"
self.headsindex=0
self.clothesindex=0
config_array = []
for i in range(6):
config_array.append(People_cfg())
clients[clientnum].send("connected",config_array)
.......
if so, what 'code' is needed to be written into recieving side (because usually way doesn't work... i.e., "newvar=message[3]")
thanks,
Shai
|