Serializing functions

Andreas Löscher andreas.loescher at s2005.tu-chemnitz.de
Thu Jun 17 12:07:57 EDT 2010


Am Donnerstag, den 17.06.2010, 18:03 +0200 schrieb Andreas Löscher:
> Am Donnerstag, den 17.06.2010, 08:18 -0700 schrieb Paul Rubin:
> > Matteo Landi <landimatte at gmail.com> writes:
> > > I could be wrong, but it seems functions are not marshable objects, is
> > > it right?
> > 
> > Hmm, you're right, you can marshal code objects, but you can't marshal a
> > function directly.  It's been a while since I've used marshal and I
> > forgot how it works.  You might be able to concoct something around it,
> > but it could be messy.  It may be simplest to send the other side a
> > python source file that it can import.
> 
> There was a similar thread a while ago.
> 

Ah I found it:
Search for:

"Object serialization: transfer from a to b (non-implemented code on b)"

 in this mailing list.

Is there a good way to link a former thread?





More information about the Python-list mailing list