diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-07-01 23:36:38 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-07-01 23:40:56 -0600 |
commit | f5e9adbbf87903e42d03bb3dd5f86b70a89e930c (patch) | |
tree | d35f5116d0ce8c579b583cda4a3ee32c541fb6bd /numpy/doc/glossary.py | |
parent | f940a9e434e2ba39328361336711502895a42194 (diff) | |
download | numpy-f5e9adbbf87903e42d03bb3dd5f86b70a89e930c.tar.gz |
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.
Diffstat (limited to 'numpy/doc/glossary.py')
-rw-r--r-- | numpy/doc/glossary.py | 7 |
1 files changed, 2 insertions, 5 deletions
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]) |