User Tools

Site Tools


Python Docstrings How-To

Python docstrings can be written in many different formats. An overview of different methods can be found in the following Stack Overflow entry: What is the standard Python docstring format?

It seems to be clever to use the docstring format of scipy and numpy since these packages are the popular. A guide to the numpy docstring format is here: numpydoc docstring guide and here is a Restructured Text (reST) syntax CheatSheet for Sphinx.


Enter your comment. Wiki syntax is allowed:
G G᠎ L V L
it/python_docstrings_how-to.txt · Last modified: 2019/05/29 09:38 by pmay