Slide 16
Slide 16 text
Docstring Formats: Numpy
16
def foobar(a, b, keyword=None):
"""Fetches rows from a Bigtable.
More paragraphs of documentation.
Parameters
——————————
a : int
An int for something.
b : str
Some other thing.
keyword : str, optional
An optional variable, that has a much
longer explanation than the other args.
Returns
———————
my_dict : dict
Something that means something to you::
{'Serak': ('Rigel VII', 'Preparer'),
'Zim': ('Irk', 'Invader'),
'Lrrr': ('Omicron Persei 8', 'Emperor')}
Raises
——————
IOError:
An error occurred accessing
something.
"""
napoleon/numpydoc
http://bit.ly/1LjBt2O