| dbp:text
|
- The marshal module exists mainly to support reading and writing the “pseudo-compiled” code for Python modules of .pyc files.
…
If you’re serializing and de-serializing Python objects, use the pickle module instead (en)
- To "marshal" an object means to record its state and codebase in such a way that when the marshalled object is "unmarshalled," a copy of the original object is obtained, possibly by automatically loading the class definitions of the object. You can marshal any object that is serializable or remote . Marshalling is like serialization, except marshalling also records codebases. Marshalling is different from serialization in that marshalling treats remote objects specially.
…
Any object whose methods can be invoked [on an object in another Java virtual machine] must implement the java.rmi.Remote interface. When such an object is invoked, its arguments are marshalled and sent from the local virtual machine to the remote one, where the arguments are unmarshalled and used. (en)
- When you marshal an object by value, a copy of the object is created and serialized to the server. Any method calls made on that object are done on the server (en)
|