Return the reconstituted (unpickled) object from a binary pickle file.
Any binary pickle file may be used as input.
The unpickling is equivalent to:
import cPickle
fh = open('file.pkl', 'rb')
x = cPickle.load(fh)
fh.close()
| Parameters: |
|
|---|---|
| Returns: |
|
| Raises: |
|
See also
| Examples: |
|---|
For any picklable object, x:
>>> cf.pickle(x, 'file.pkl')
>>> y = cf.unpickle('file.pkl')
>>> cf.equals(x, y)
True