From f5e9adbbf87903e42d03bb3dd5f86b70a89e930c Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 1 Jul 2015 23:36:38 -0600 Subject: DOC: Fix docstring warnings in documetation generation. Most of these fixes involve putting blank lines around .. versionadded:: x.x.x and .. deprecated:: x.x.x Some of the examples were also fixed. --- numpy/doc/glossary.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'numpy/doc/glossary.py') diff --git a/numpy/doc/glossary.py b/numpy/doc/glossary.py index f856a742b..9dacd1cb5 100644 --- a/numpy/doc/glossary.py +++ b/numpy/doc/glossary.py @@ -264,7 +264,6 @@ Glossary (matrix multiplication) and ``**`` (matrix power), defined:: >>> x = np.mat([[1, 2], [3, 4]]) - >>> x matrix([[1, 2], [3, 4]]) @@ -278,18 +277,17 @@ Glossary method called ``repeat``:: >>> x = np.array([1, 2, 3]) - >>> x.repeat(2) array([1, 1, 2, 2, 3, 3]) ndarray See *array*. - + record array An `ndarray`_ with `structured data type`_ which has been subclassed as np.recarray and whose dtype is of type np.record, making the fields of its data type to be accessible by attribute. - + reference If ``a`` is a reference to ``b``, then ``(a is b) == True``. Therefore, ``a`` and ``b`` are different names for the same Python object. @@ -360,7 +358,6 @@ Glossary changed. Similar to a list, it can be indexed and sliced:: >>> x = (1, 'one', [1, 2]) - >>> x (1, 'one', [1, 2]) -- cgit v1.2.1