summaryrefslogtreecommitdiff
path: root/numpy/__init__.py
diff options
context:
space:
mode:
authorPaul Ivanov <paul.ivanov@local>2009-12-28 20:49:52 +0000
committerPaul Ivanov <paul.ivanov@local>2009-12-28 20:49:52 +0000
commite4f233ecfedd2aafa258db2d3ae27e30604cc020 (patch)
tree6d32fbdd19b8dca00cd7cafd8df076bac55ddfd8 /numpy/__init__.py
parent5ba01996a9ab2fdfb7c120a5afae801f854a781a (diff)
downloadnumpy-e4f233ecfedd2aafa258db2d3ae27e30604cc020.tar.gz
fixed a whole bunch of doctests
Diffstat (limited to 'numpy/__init__.py')
-rw-r--r--numpy/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py
index 709ef373a..8247f4c7a 100644
--- a/numpy/__init__.py
+++ b/numpy/__init__.py
@@ -24,11 +24,13 @@ The docstring examples assume that `numpy` has been imported as `np`::
Code snippets are indicated by three greater-than signs::
+ >>> x = 42
>>> x = x + 1
Use the built-in ``help`` function to view a function's docstring::
>>> help(np.sort)
+ ... # doctest: +SKIP
For some objects, ``np.info(obj)`` may provide additional help. This is
particularly true if you see the line "Help on ufunc object:" at the top
@@ -39,12 +41,14 @@ np.info() function does.
To search for documents containing a keyword, do::
>>> np.lookfor('keyword')
+ ... # doctest: +SKIP
General-purpose documents like a glossary and help on the basic concepts
of numpy are available under the ``doc`` sub-module::
>>> from numpy import doc
>>> help(doc)
+ ... # doctest: +SKIP
Available subpackages
---------------------