summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index e57a6dd47..0d09fe66f 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -611,6 +611,11 @@ def savez(file, *args, **kwds):
its list of arrays (with the ``.files`` attribute), and for the arrays
themselves.
+ When saving dictionaries, avoid using keys that begin with "/", as the
+ first slash will be removed by the python archive function. If they
+ must be used, prepend another character ahead of the slash to ensure
+ that the "/" will not be removed.
+
Examples
--------
>>> from tempfile import TemporaryFile