[Python-Dev] cPickle.c out-of-date w.r.t. version in Zope 2.2.1

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 1 Sep 2000 11:42:01 -0400


On Fri, Sep 01, 2000 at 09:13:39AM -0500, Skip Montanaro wrote:
>leak.  In working my way through some compilation errors I noticed that
>Zope's cPickle.c appears to be somewhat different than Python's version.
>(Haven't checked cStringIO.c yet, but I imagine there may be a couple
>differences there as well.)

There are also diffs in cStringIO.c, though not ones that affect
functionality: ANSI-fication, and a few changes to the Python API
(PyObject_Length -> PyObject_Size, PyObject_NEW -> PyObject_New, &c).

The cPickle.c changes look to be:
    * ANSIfication.
    * API changes.
    * Support for Unicode strings.

The API changes are the most annoying ones, since you need to add
#ifdefs in order for the module to compile with both 1.5.2 and 2.0.
(Might be worth seeing if this can be alleviated with a few strategic
macros, though I think not...)

--amk