Code marshalling question.

Martin v. Löwis loewis at informatik.hu-berlin.de
Tue Oct 8 11:42:25 EDT 2002


sismex01 at hebmex.com 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.

Regards,
Martin




More information about the Python-list mailing list