The cPickle Module
(Optional) The cPickle module shown in Example 4-13 contains a faster reimplementation of the pickle module.
Example 4-13. Using the cPickle Module
File: cpickle-example-1.py
try:
import cPickle
pickle = cPickle
except ImportError:
import pickle
Категории