[Pipet Devel] PAOS and the Work Flow System

Konrad Hinsen hinsen at cnrs-orleans.fr
Wed Apr 14 10:26:28 EDT 1999

> > module plus some optimizations. The pickle module lets you serialize
> > Python objects into strings so you can send them over the net. There is no
> > specified standard for the pickle protocol.
> I think we need to be careful, we should write our own pickling
> routines that serialize data as XML. From what I understand of
> pickling, this shouldn't be a problem, but I want to make clear that
> ad-hoc protocols are not going to be fun.

It's not as bad as it seems. The pickle protocol is in a sense documented
by Python's pickle module (which is very readable), and it is not going
to change (pickle files are used for archiving data in many applications).

Pickle data has the advantage of being compact and efficient, but also
the disadvantages of being neither "human reader friendly" nor easy to
process in other languages (because it is basically a text
representation of Python's internal data structures).

Which raises a problem: writing a pickler using another format is not
difficult, as long as the simple relation between the data layout
and Python's internal data structure remains. This however may not
be desirable, and then writing a general pickler (which can deal with
any kind of object) is probably not so easy.

Konrad Hinsen                            | E-Mail: hinsen at cnrs-orleans.fr
Centre de Biophysique Moleculaire (CNRS) | Tel.: +33-
Rue Charles Sadron                       | Fax:  +33-
45071 Orleans Cedex 2                    | Deutsch/Esperanto/English/
France                                   | Nederlands/Francais

More information about the Pipet-Devel mailing list