Python equivalent of java ObjectOutputStream and ObjectInputStream?

equivalent, java, python

Solution

The pickle module in Python provides object serialization and deserialization functionality. http://docs.python.org/library/pickle.html

It's not particularly secure, so you should always validate the incoming data, but it should support your needs.

Problem

In java I can transfer objects between server and client by using Object Output Stream and Object Input Stream. Is there anything equivalent in python? Related: - python equivalent of java OutputStream?

Original source

Related problems