On Feb 8, 2006, at 9:40 PM, Matt Harrison wrote:

Right -- that's what I get for writing code in Mail without testing it.

Hey mail in code is better than no code!  Thanks.

I've got another question for you regarding simplejson. Have you (or anyone you know of) done serialization of python objects using JSON?

That's more or less what simplejson does by definition... It won't serialize arbitrary objects out of the box, but it's easily subclassable in a way that would make it easy to do so (implementing a "default" method).

I'm thinking about how difficult it would be to do remote objects over http....

You mean like JSON-RPC?

Yes. Perhaps I should look at pyro and see if it would be possible to change the serialization and transport mechanisms....

Just wondering. I'm trying to implement rpc mechanisms between nodes and would prefer to do it over http.... JSON would make some things easier like adding AJAXy interfaces where needed. But maybe trying to bolt JSON into an rpc mechanism is overkill...

I certainly wouldn't try to make pyro talk JSON or XML-RPC, but using xmlrpclib or simplejson would be a fine means for doing RPC with a JavaScript client.

Personally, I find that more "REST"-ful approaches are a little easier to deal with going over HTTP.

-bob

Reply via email to