diff options
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r-- | numpy/add_newdocs.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 07df1f38d..9cd1c89a5 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -771,7 +771,9 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('diagonal', add_newdoc('numpy.core.multiarray', 'ndarray', ('dump', - """a.dump(file) Dump to specified file. + """a.dump(file) Dump a pickle of the array to the specified file. + + The array can be read back with pickle.load or numpy.load Arguments: file -- string naming the dump file. @@ -780,8 +782,9 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('dump', add_newdoc('numpy.core.multiarray', 'ndarray', ('dumps', - """a.dumps() -> string containing the dump? + """a.dumps() returns the pickle of the array as a string. + pickle.loads or numpy.loads will convert the string back to an array. """)) |