If yaml (or pysyck) supports all of the features of pickle, it's theoretically possible. You would need to track down all of the places in ZODB where the code serializes and deserializes data from pickle format and write alternate serializing/deserializing logic.

But AFAIK the serialization code in ZODB is not very "pluggable". As a result, it would be a nontrivial thing to do, especially given that some serialization-sensitive portions of ZODB are written in C. So I suspect that this is one of those questions that has an answer that goes something like "assuming it's worth the effort, if you need to ask, the answer is yes." ;-)


You might want to try adapting Durus instead as I believe it's written entirely in Python.

- C

On Mar 18, 2006, at 1:21 PM, Chris Spencer wrote:

Just out of curiosity, would there be any huge technical hurtles to getting Zodb to use Yaml for serialization instead of Pickle?

Regards,
Chris

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to