diff options
author | Ben Nathanson <github@bigriver.xyz> | 2020-09-23 09:06:09 -0400 |
---|---|---|
committer | Ben Nathanson <github@bigriver.xyz> | 2020-09-23 09:06:09 -0400 |
commit | 9c799c4fd07c2b3d13c189fda5bee4d6b45e54bb (patch) | |
tree | 23801ebbc80c39f74f5ddc8183f959f207db8f45 /doc/source/user | |
parent | fe7c3614a491d087ddc9102bfcff63bed7f8cea1 (diff) | |
download | numpy-9c799c4fd07c2b3d13c189fda5bee4d6b45e54bb.tar.gz |
DOC: Update pickle section in PR #17353
Diffstat (limited to 'doc/source/user')
-rw-r--r-- | doc/source/user/how-to-io.rst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/source/user/how-to-io.rst b/doc/source/user/how-to-io.rst index 49c0583c3..f8b4dee9f 100644 --- a/doc/source/user/how-to-io.rst +++ b/doc/source/user/how-to-io.rst @@ -296,13 +296,12 @@ NumPy arrays are **not** directly Save/restore using a pickle file
******************************************************************************
-Not recommended, due to lack of security and portability.
+Avoid when possible; :doc:`pickles <python:library/pickle>` are not secure
+against erroneous or maliciously constructed data.
- * **security**: not secure against erroneous or maliciously constructed data
- * **portability**: may not be loadable on different Python installations
-
-Use :func:`numpy.save` and :func:`numpy.load`. Set ``allow_pickle=False``, unless
-the array dtype includes Python objects, in which case pickling is required.
+Use :func:`numpy.save` and :func:`numpy.load`. Set ``allow_pickle=False``,
+unless the array dtype includes Python objects, in which case pickling is
+required.
******************************************************************************
Convert from a pandas DataFrame to a NumPy array
|