dict->XML->dict? Or, passing small hashes through text?

Andrew Bennetts andrew-pythonlist at puzzling.org
Fri Aug 15 02:04:20 EDT 2003


On Fri, Aug 15, 2003 at 12:57:24AM -0500, mackstann wrote:
> On Fri, Aug 15, 2003 at 12:19:51AM -0500, Skip Montanaro wrote:
> >     mack> I'm basically passing little messages around, which are basically
> >     mack> just hashes, and up until now, I was using a dict that I formatted
> >     mack> to/parsed from a special syntax, but I keep running into growing
> >     mack> pains with that.  I'm using SocketServer, and each connection
> >     mack> sends one line of data, and then the connection is closed by the
> >     mack> server.
> > 
> > Check out xmlrpclib in the Python distribution for quite awhile.  It also
> > interoperates with XML-RPC libraries written in other languages.
> 
> That was something I've looked at, and honestly I need to look at it
> further, but at first I was turned off because it implements its own
> little server, so I'd have to gut mine.  But that's not a reason to rule
> it out completely.

It's possible to use xmlrpclib without running its builtin server -- e.g.
Twisted's XML-RPC support does this, and it's not hard.

-Andrew.






More information about the Python-list mailing list