marshalling data structures between perl <-> php <-> python

Paul Rubin phr-n2001d at nightsong.com
Fri Dec 21 10:18:42 EST 2001


Skip Montanaro <skip at pobox.com> writes:
> Dunno about "common", but there is a Python version of marshal that Guido
> wrote for JPython.  You could translate that to Perl and PHP.  I have a copy
> lying about if you need it.

Marshal is an awful format for long ints in languages other than
python.  It uses Python's weird internal representation for them which
has to be munged mightly for other languages.

Most applications don't use long ints though, so this may not be an issue
much of the time.




More information about the Python-list mailing list