summaryrefslogtreecommitdiff
path: root/doc/sphinxext/docscrape.py
diff options
context:
space:
mode:
authorpierregm <pierregmcode@gmail.com>2010-10-11 23:02:10 +0200
committerpierregm <pierregmcode@gmail.com>2010-10-11 23:02:10 +0200
commita14dd542532d383610c1b01c5698b137dd058fea (patch)
tree036f0452ee16fe1b9b74c13e6ad9bb9155310256 /doc/sphinxext/docscrape.py
parent61d945bdb5c9b2b3329e1b8468b5c7d0596dd9fc (diff)
parent11ee694744f2552d77652ed929fdc2b4ccca6843 (diff)
downloadnumpy-a14dd542532d383610c1b01c5698b137dd058fea.tar.gz
merging refs/remotes/origin/master into HEAD
Diffstat (limited to 'doc/sphinxext/docscrape.py')
-rw-r--r--doc/sphinxext/docscrape.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py
index 63fec42ad..615ea11f8 100644
--- a/doc/sphinxext/docscrape.py
+++ b/doc/sphinxext/docscrape.py
@@ -284,8 +284,8 @@ class NumpyDocString(object):
for (section,content) in self._read_sections():
if not section.startswith('..'):
section = ' '.join([s.capitalize() for s in section.split(' ')])
- if section in ('Parameters', 'Attributes', 'Methods',
- 'Returns', 'Raises', 'Warns'):
+ if section in ('Parameters', 'Returns', 'Raises', 'Warns',
+ 'Other Parameters', 'Attributes', 'Methods'):
self[section] = self._parse_param_list(content)
elif section.startswith('.. index::'):
self['index'] = self._parse_index(section, content)
@@ -381,7 +381,8 @@ class NumpyDocString(object):
out += self._str_signature()
out += self._str_summary()
out += self._str_extended_summary()
- for param_list in ('Parameters','Returns','Raises'):
+ for param_list in ('Parameters', 'Returns', 'Other Parameters',
+ 'Raises', 'Warns'):
out += self._str_param_list(param_list)
out += self._str_section('Warnings')
out += self._str_see_also(func_role)