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

Guido van Rossum guido@python.org
Sat, 07 Dec 2002 19:52:08 -0500


> 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?

I don't know where the code is that you're referring to, but could it
be that it works on 2.1.3 because there's a '__metaclass__ = type'
somewhere?

--Guido van Rossum (home page: http://www.python.org/~guido/)