We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The cPickle module

(Optional). This module contains a faster reimplementation of the pickle module.

Example: Using the cPickle module
# File: cpickle-example-1.py

    import cPickle as pickle
except ImportError:
    import pickle # fall back on Python version

class Sample:
    def __init__(self, value):
        self.value = value

sample = Sample(1)

data = pickle.dumps(sample)

print pickle
print repr(data)

<module 'cPickle' (built-in)>