Re: python socket usage

2007-08-17 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Oğuz Yarımtepe wrote: > Is it possible to send a data object like a tuple or a list in socket > programming? You'll have to define a bytestream encoding to send over the connection. I recently wrote up some Python code

Re: python socket usage

2007-08-17 Thread Bryan Olson
Oğuz Yarımtepe wrote: > As i read pickle module is Python-spesific. I need to talk with a Java > application and get the infortion that it will send. What i do right now is > listening a socket and reding the string that is sent by the java > application. So the java application is sending a str

Re: python socket usage

2007-08-16 Thread Gary Herron
Oğuz Yarımtepe wrote: > On Thursday 16 August 2007 11:20:38 Gary Herron wrote: > >> If you really want to send any Python object through a socket, look up >> the Pickle and cPickle modules. These will marshal (as it's called) any >> Python object of any type and complexity into a byte string wh

Re: python socket usage

2007-08-16 Thread Oğuz Yarımtepe
On Thursday 16 August 2007 11:20:38 Gary Herron wrote: > If you really want to send any Python object through a socket, look up > the Pickle and cPickle modules.  These will marshal (as it's called) any > Python object of any type and complexity into a byte string which can be > sent across a socke

Re: python socket usage

2007-08-16 Thread Paul Rubin
Gary Herron <[EMAIL PROTECTED]> writes: > be able to recover the original object accurately. Worse yet, an eval > of an arbitrary string is a HUGE security hole. > > If you really want to send any Python object through a socket, look up > the Pickle and cPickle modules. These are also security h

Re: python socket usage

2007-08-16 Thread Gary Herron
markacy wrote: > On 16 Sie, 09:42, O uz Yar mtepe <[EMAIL PROTECTED]> wrote: > >> Is it possible to send a data object like a tuple or a list in socket >> programming? If so how? It seems with socket module it is only possible to >> send strings. >> >> -- >> O uz Yar mtepehttp://www.yarimtepe.co

Re: python socket usage

2007-08-16 Thread Paul Rubin
O¿uz YarÑmtepe <[EMAIL PROTECTED]> writes: > Is it possible to send a data object like a tuple or a list in socket > programming? If so how? It seems with socket module it is only possible to > send strings. Look into something like pyro or JSON. Whatever you do, don't use eval. -- http://mai

Re: python socket usage

2007-08-16 Thread markacy
On 16 Sie, 09:42, O uz Yar mtepe <[EMAIL PROTECTED]> wrote: > Is it possible to send a data object like a tuple or a list in socket > programming? If so how? It seems with socket module it is only possible to > send strings. > > -- > O uz Yar mtepehttp://www.yarimtepe.com/en Hi Oguz, why don't

python socket usage

2007-08-16 Thread Oğuz Yarımtepe
Is it possible to send a data object like a tuple or a list in socket programming? If so how? It seems with socket module it is only possible to send strings. -- Oğuz Yarımtepe http://www.yarimtepe.com/en -- http://mail.python.org/mailman/listinfo/python-list