summaryrefslogtreecommitdiff
path: root/numpy/lib/io.py
diff options
context:
space:
mode:
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")