Zope-specifics of cPickle
Hello, In Python it's possible to use the cPickle module to dump objects (instanciated classes). This is not possible in zope's version of cPickle. What's the reason for this difference? Thanks, Stephan
Stephan Herschel wrote:
In Python it's possible to use the cPickle module to dump objects (instanciated classes). This is not possible in zope's version of cPickle.
I would be expremely surprised if that was the case ;-) Chris
If it is not possible, submit this as a bug to the collector at http://collector.zope.org Andreas ----- Original Message ----- From: "Stephan Herschel" <stephan.herschel@proceryon.at> To: <zope@zope.org> Sent: Tuesday, November 20, 2001 04:24 Subject: [Zope] Zope-specifics of cPickle
Hello,
In Python it's possible to use the cPickle module to dump objects (instanciated classes). This is not possible in zope's version of cPickle. What's the reason for this difference?
Thanks, Stephan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Stephan Herschel writes:
In Python it's possible to use the cPickle module to dump objects (instanciated classes). This is not possible in zope's version of cPickle. What's the reason for this difference? It is.
The restriction is: the class must be defined at top level of a Python module. Zope's cPickle prevents pickling of wrapped objects, in addition. This is good, as wrappers are runtime objects which should not be pickled. Dieter
participants (4)
-
Andreas Jung -
Chris Withers -
Dieter Maurer -
Stephan Herschel