The cPickle module

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

Example: Using the cPickle module
# File:

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

A Django site. rendered by a django application. hosted by webfaction.