What are the most common Python docstring formats?

Published: 28 January 2023
on channel: The Python Oracle
147
2

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ocean Floor

--

Chapters
00:00 Question
00:21 Accepted answer (Score 1390)
03:17 Answer 2 (Score 354)
04:00 Answer 3 (Score 244)
05:29 Answer 4 (Score 67)
06:32 Thank you

--

Full question
https://stackoverflow.com/questions/3...

Accepted answer links:
[this blog post]: http://daouzli.com/blog/docstring.html
[PEP 287]: https://www.python.org/dev/peps/pep-0287
[Epydoc]: http://epydoc.sourceforge.net
[Sphinx]: http://sphinx-doc.org
[format]: https://github.com/google/styleguide/...
[Napoleon plugin]: https://sphinxcontrib-napoleon.readth...
[more examples]: https://www.sphinx-doc.org/en/master/...
[numpydoc]: https://numpydoc.readthedocs.io/en/la...
[Pyment]: https://github.com/dadadel/pyment
[Pyment documentation]: https://github.com/dadadel/pyment/blo...

Answer 2 links:
[Google style guide]: https://github.com/google/styleguide
[conventions for readable docstring syntax]: https://google.github.io/styleguide/p...
[Sphinx documentation tutorial]: https://pythonhosted.org/an_example_p...

Answer 3 links:
[PEP-257]: http://www.python.org/dev/peps/pep-0257/

Answer 4 links:
[specification of the format]: https://numpydoc.readthedocs.io/en/la...
[example]: https://github.com/numpy/numpy/blob/m...
[numpydoc]: https://github.com/numpy/numpydoc
http://docs.scipy.org/doc/numpy/refer...
[comparison]: http://sphinxcontrib-napoleon.readthe...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...

--

Tags
#python #codingstyle #documentation #docstring

#avk47


On this page of the site you can watch the video online What are the most common Python docstring formats? with a duration of hours minute second in good quality, which was uploaded by the user The Python Oracle 28 January 2023, share the link with friends and acquaintances, this video has already been watched 147 times on youtube and it was liked by 2 viewers. Enjoy your viewing!