diff options
author | Arushi Sharma <40266350+arushi-08@users.noreply.github.com> | 2021-10-21 00:02:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 00:02:15 +0530 |
commit | 0a7a0a28874d0d1900f4b4b0fc2058afff30de76 (patch) | |
tree | 718ffae0c77628a50cbec104c10c7ca1257aa09b /numpy/lib/npyio.py | |
parent | 5cb560616abe44774d897a80970775d2a26bb03b (diff) | |
download | numpy-0a7a0a28874d0d1900f4b4b0fc2058afff30de76.tar.gz |
DOC: updated docstring for binary file object
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 6c34e95fe..3ae9b0e63 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -285,7 +285,8 @@ def load(file, mmap_mode=None, allow_pickle=False, fix_imports=True, ---------- file : file-like object, string, or pathlib.Path The file to read. File-like objects must support the - ``seek()`` and ``read()`` methods. Pickled files require that the + ``seek()`` and ``read()`` methods. The file object must always + be opened in binary mode. Pickled files require that the file-like object support the ``readline()`` method as well. mmap_mode : {None, 'r+', 'r', 'w+', 'c'}, optional If not None, then memory-map the file, using the given mode (see |