[ZODB-Dev] Pickling problem caused by Python 2.2.2 ?!

Andreas Jung andreas@andreas-jung.com
Sat, 07 Dec 2002 14:17:21 +0100


Zope(HEAD), CMF(HEAD), Python 2.2.2 and CMFCollectorNG raised
an exception "Can not pickle function objects" when I a new issue
is submitted and commited to the ZODB. For debugging purposes I added
code before the last action before the commit and "print obj.__reduce__"
raises a "TypeError, Can't pickle objects in acquisition wrappers."

The same problem persits with Zope 2.6 and CMF 1.3 and Python 2.2.2.

Using Zope (2.6 or HEAD), CMF(1.3 or HEAD) and Python 2.1.3(!) works fine.
This smells like a critical bug caused by some incompatibility with
Python 2.2.2.

Any ideas on this problem?
Andreas

    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------