Hendrik van Rooyen wrote:
> "Jeff Pang" wrote:
>> I want to transmit an array via socket from a host to another.
>> How to do it? thank you.
>
> pickle it and send it and unpickle it on the other side.
>
> See the cPickle module docs for loads and dumps.
In particular note:
Warning: The p
"Jeff Pang" wrote:
I want to transmit an array via socket from a host to another.
How to do it? thank you.
pickle it and send it and unpickle it on the other side.
See the cPickle module docs for loads and dumps.
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 26, 11:52 pm, "Jeff Pang" <[EMAIL PROTECTED]> wrote:
> I want to transmit an array via socket from a host to another.
> How to do it? thank you.
>
Try this:
client:
---
import socket
s = socket.socket()
host = 'localhost'
port = 3030
s.connect( (host, port) )
arr = [1, 2, 3]
for elm
Jeff Pang schrieb:
> I want to transmit an array via socket from a host to another.
> How to do it? thank you.
Using XMLRPC or Pyro or other RPC mechanisms instead of reinventing a
wheel that is larger than the socket API suggests in the first place.
Diez
--
http://mail.python.org/mailman/listi