summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/reference/routines.io.rst2
-rw-r--r--numpy/lib/format.py3
-rw-r--r--numpy/lib/npyio.py6
3 files changed, 7 insertions, 4 deletions
diff --git a/doc/source/reference/routines.io.rst b/doc/source/reference/routines.io.rst
index bbe3e8979..9acd22c56 100644
--- a/doc/source/reference/routines.io.rst
+++ b/doc/source/reference/routines.io.rst
@@ -14,7 +14,7 @@ NumPy binary files (NPY, NPZ)
savez_compressed
The format of these binary file types is documented in
-:py:mod:`numpy.lib.format`
+:ref:`binary-serialization`.
Text files
----------
diff --git a/numpy/lib/format.py b/numpy/lib/format.py
index afa154cc5..a0ec55f01 100644
--- a/numpy/lib/format.py
+++ b/numpy/lib/format.py
@@ -1,4 +1,7 @@
"""
+
+.. _binary-serialization:
+
Binary Serialization
====================
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 5d3c1e525..95804be7f 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -475,7 +475,7 @@ def save(file, arr, allow_pickle=True, fix_imports=True):
Notes
-----
- For a description of the ``.npy`` format, see :py:mod:`numpy.lib.format`
+ For a description of the ``.npy`` format, see :ref:`binary-serialization`.
Examples
--------
@@ -559,7 +559,7 @@ def savez(file, *args, **kwds):
The ``.npz`` file format is a zipped archive of files named after the
variables they contain. The archive is not compressed and each file
in the archive contains one variable in ``.npy`` format. For a
- description of the ``.npy`` format, see :py:mod:`numpy.lib.format`
+ description of the ``.npy`` format, see :ref:`binary-serialization`.
When opening the saved ``.npz`` file with `load` a `NpzFile` object is
returned. This is a dictionary-like object which can be queried for
@@ -639,7 +639,7 @@ def savez_compressed(file, *args, **kwds):
variables they contain. The archive is compressed with
``zipfile.ZIP_DEFLATED`` and each file in the archive contains one variable
in ``.npy`` format. For a description of the ``.npy`` format, see
- :py:mod:`numpy.lib.format`
+ :ref:`binary-serialization`.
When opening the saved ``.npz`` file with `load` a `NpzFile` object is