Code marshalling question.

Martin v. Löwis loewis at
Tue Oct 8 17:42:25 CEST 2002

sismex01 at writes:

> Is this doable?  If so, how?

You can marshal code objects with the marshal module. To transmit an
entire class, you either have to create code that creates the class
and marshal that, or find extend the pickle protocol to pickle
classes. You can do this by inheriting from the Pickler class, and
replacing dispatch[ClassType].

Of course, you can also use one of the existing frameworks that allow
to transfer Python code, such as PyRo.


More information about the Python-list mailing list