summaryrefslogtreecommitdiff
path: root/numpy/lib/io.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-12-30 11:10:41 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-12-30 11:10:41 +0000
commit79d187afc7b9085993f016bf35fc296f447b9660 (patch)
tree6f94fc0721b8eb5e9032b45d1229a3692fc08206 /numpy/lib/io.py
parent5896cb8c7aba4477bd9d09fb94a129ee2e8ad11a (diff)
downloadnumpy-79d187afc7b9085993f016bf35fc296f447b9660.tar.gz
Fix deprecate_with_doc and deprecate for builtin functions.
Diffstat (limited to 'numpy/lib/io.py')
-rw-r--r--numpy/lib/io.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/numpy/lib/io.py b/numpy/lib/io.py
index b4e89c2fc..077bc797b 100644
--- a/numpy/lib/io.py
+++ b/numpy/lib/io.py
@@ -96,10 +96,15 @@ def load(file, memmap=False):
-------
result : array, tuple, dict, etc.
data stored in the file.
- If file contains pickle data, then whatever is stored in the pickle is returned.
+ If file contains pickle data, then whatever is stored in the pickle is
+ returned.
If the file is .npy file, then an array is returned.
- If the file is .npz file, then a dictionary-like object is returned which has a
- filename:array key:value pair for every file in the zip.
+ If the file is .npz file, then a dictionary-like object is returned
+ which has a filename:array key:value pair for every file in the zip.
+
+ Raises
+ ------
+ IOError
"""
if isinstance(file, type("")):
fid = _file(file,"rb")