Re: Sending Dictionary via Network

2006-10-26 Thread Frithiof Andreas Jensen
"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Frithiof Andreas Jensen wrote: > >> "mumebuhi" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > >> The simplejson module is really cool and simple to use. This is great! > > > > JUST what I need for some

Re: Sending Dictionary via Network

2006-10-25 Thread Lawrence Oluyede
Chris Mellon <[EMAIL PROTECTED]> wrote: > I would recommend against using pickle if you're going to push it over > a network - there are signifigant dangers in unpickling anything > untrusted. I confirm: http://jcalderone.livejournal.com/15864.html -- Lawrence - http://www.oluyede.org/blog http:

Re: Sending Dictionary via Network

2006-10-25 Thread Chris Mellon
On 24 Oct 2006 16:56:43 -0700, Simon Forman <[EMAIL PROTECTED]> wrote: > > mumebuhi wrote: > > Thank you very much for the reply. > > > > Can pickle work directly with socket? The way I am doing right now is > > to pickle the object to a file then send the file content through the > > socket. > > P

Re: Sending Dictionary via Network

2006-10-25 Thread Leif K-Brooks
Frithiof Andreas Jensen wrote: >> "mumebuhi" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> The simplejson module is really cool and simple to use. This is great! > > JUST what I need for some configuration files!! > Thanks for the link (die, configparse, dieee). I would person

Re: Sending Dictionary via Network

2006-10-25 Thread Frithiof Andreas Jensen
> "mumebuhi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The simplejson module is really cool and simple to use. This is great! JUST what I need for some configuration files!! Thanks for the link (die, configparse, dieee). -- http://mail.python.org/mailman/listinfo/python-lis

Re: Sending Dictionary via Network

2006-10-24 Thread Steve Holden
mumebuhi wrote: > The simplejson module is really cool and simple to use. This is great! > > For others who are just starting to use Python (like myself), simply > download and decompress the source bundle then copy the simplejson > directory to your sys.path (e.g. /usr/lib/python2.4/). > Alterna

Re: Sending Dictionary via Network

2006-10-24 Thread Simon Forman
mumebuhi wrote: > Thank you very much for the reply. > > Can pickle work directly with socket? The way I am doing right now is > to pickle the object to a file then send the file content through the > socket. Pickle aso has dumps() and loads() to work with strings rather than files. Peace, ~Simo

Re: Sending Dictionary via Network

2006-10-24 Thread Ben Finney
Larry Bates <[EMAIL PROTECTED]> writes: > mumebuhi wrote: > > Is it possible to send a non-string object from a Python program > > to another? I particularly need to send a dictionary over to the > > other program. However, this is not possible using the socket > > object's send() function. You w

Re: Sending Dictionary via Network

2006-10-24 Thread mumebuhi
The simplejson module is really cool and simple to use. This is great! For others who are just starting to use Python (like myself), simply download and decompress the source bundle then copy the simplejson directory to your sys.path (e.g. /usr/lib/python2.4/). Thanks so much, Bruno. Buhi Bru

Re: Sending Dictionary via Network

2006-10-24 Thread mumebuhi
Thank you very much for the reply. Can pickle work directly with socket? The way I am doing right now is to pickle the object to a file then send the file content through the socket. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending Dictionary via Network

2006-10-24 Thread Bruno Desthuilliers
mumebuhi a écrit : > Hi, > > Is it possible to send a non-string object from a Python program to > another? I particularly need to send a dictionary over to the other > program. However, this is not possible using the socket object's send() > function. > > Help? >>> d = dict(one=1, two="three",

Re: Sending Dictionary via Network

2006-10-24 Thread Larry Bates
mumebuhi wrote: > Hi, > > Is it possible to send a non-string object from a Python program to > another? I particularly need to send a dictionary over to the other > program. However, this is not possible using the socket object's send() > function. > > Help? > > > Buhi > You will need to pick

Sending Dictionary via Network

2006-10-24 Thread mumebuhi
Hi, Is it possible to send a non-string object from a Python program to another? I particularly need to send a dictionary over to the other program. However, this is not possible using the socket object's send() function. Help? Buhi -- http://mail.python.org/mailman/listinfo/python-list