Python和GO之间的通讯媒介?

I would like to read and write to some save files with a special format. The extent of my current capabilities, however, would be to compile the go source and then call it with Python and return JSON.

Is there a better way to communicate between GO! and Python?

Go has a gob format for serializing data, but some mailing list discussion on golang-nuts suggests that it's not a good choice for communicating with other languages.

JSON would be a very respectable option, or you could try using protobufs which were also suggested in the discussion I linked to above.

EDIT: You could also try communicating with Thrift depending on your needs, but that's probably a less likely candidate for what you're doing.

There is BSON, which you can think of as a binary version of JSON, with implementations for many languages including Go and Python.