def load(file):
if isinstance(file, type("<STR_LIT>")):<EOL><INDENT>file = open(file, "<STR_LIT:rb>")<EOL><DEDENT>return pickle.load(file)<EOL>
Wrapper around cPickle.load which accepts either a file-like object or
a filename.

Note that the NumPy binary format is not based on pickle/cPickle anymore.
For details on the preferred way of loading and saving files, see `load`
and `save`.

See Also
--------
load, save