[MATRIX-SIG] Changing shelve...

Konrad Hinsen hinsen@ibs.ibs.fr
Sat, 4 Oct 1997 08:38:37 +0200


> The Numeric module includes it's own special versions of Pickler and
> Unpickler which inherit from those defined in the pickle module, but add
> the functionality of Numeric.array pickling.  This is all well and good,
> but it's still pretty troublesome if you're working with the shelve
> module.  shelve.Shelf likes to directly call pickle.Pickler and
> pickle.Unpickler, not those versions found in Numeric.

And that's only one of the problems with this approach. Another one is
that it works only as long as there is no more than one
"specialization" of pickle.

The fundamental problem is pickle itself, which in its present form
does not permit the extension to new data types other than by
subclassing. This might change in later versions.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-4.76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-4.76.88.54.94
41, av. des Martyrs                    | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________