Pickling C objects

David Ascher da at ski.org
Wed Jul 14 12:11:23 EDT 1999


On Tue, 13 Jul 1999, Stuart Reynolds wrote:

> I'm writing some new Python classes with a C implementation. How do you
> make a C object pickleable?

To my knowledge, the easiest way is to make them be ExtensionClass
objects and use the __getstate__/__setstate__ methods.

See http://www.digicool.com/releases/ExtensionClass

The latest version is not on the web, but it's available through the Zope
read-only CVS directory: http://www.zope.org/Community/CVS_public_access

--david





More information about the Python-list mailing list