diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-09-23 11:12:12 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-09-23 11:12:12 +0000 |
commit | 007331a6b2027c1a20190134d32dec51356f1d4a (patch) | |
tree | 341e772ebd01d2584db08a954ff7bf4183e2f40f /numpy/doc/example.py | |
parent | 42dc14cf0ea6a84c5e8ddc86a5e941b3e6213ed9 (diff) | |
download | numpy-007331a6b2027c1a20190134d32dec51356f1d4a.tar.gz |
documentation
Diffstat (limited to 'numpy/doc/example.py')
-rw-r--r-- | numpy/doc/example.py | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/numpy/doc/example.py b/numpy/doc/example.py new file mode 100644 index 000000000..cb5c24690 --- /dev/null +++ b/numpy/doc/example.py @@ -0,0 +1,78 @@ + +__docformat__ = "restructuredtext en" + + +def foo(var1, var2, long_var_name='hi') : + """One-line summary or signature. + + Several sentences providing an extended description. You can put + text in mono-spaced type like so: ``var``. + + *Parameters*: + + var1 : {array_like} + Array_like means all those objects -- lists, nested lists, etc. -- + that can be converted to an array. + var2 : {integer} + Write out the full type + long_variable_name : {'hi', 'ho'}, optional + Choices in brackets, default first when optional. + + *Returns*: + + named : {type} + Explanation + list + Explanation + of + Explanation + outputs + even more explaining + + *Other Parameters*: + + only_seldom_used_keywords : type + Explanation + common_parametrs_listed_above : type + Explanation + + *See Also*: + + `otherfunc` : relationship (optional) + + `newfunc` : relationship (optional) + + *Notes* + + Notes about the implementation algorithm (if needed). + + This can have multiple paragraphs as can all sections. + *Examples* + + examples in doctest format + + >>> a=[1,2,3] + >>> [x + 3 for x in a] + [4, 5, 6] + + """ + pass + + +def newfunc() : + """Do nothing. + + I never saw a purple cow. + + """ + pass + + +def otherfunc() : + """Do nothing. + + I never hope to see one. + + """ + pass + |