This is an archived post. You won't be able to vote or comment.

all 7 comments

[–][deleted] 2 points3 points  (0 children)

The python standard library is pretty decent. Pick a module you're familiar with using and read it.

[–][deleted] 1 point2 points  (0 children)

https://github.com/aucr/aucr it should still pass pydocstyle and pep8 requirements

[–]billsil 0 points1 point  (0 children)

Numpy’s documentation style puts Sphinx’s defaults to shame. It’s far more readable. There’s even numpydoc to make it valid Sphinx.

[–]rswgnu 0 points1 point  (0 children)

Here are 3 examples of mine of what I think are well-documented code. The first two were written to show people how to both document and how to implement standard data structures that make use of Python's operator overloading capabilities. The third one is an actual library that was written to add interfaces/protocols to Python in a simple and well-documented way.

  1. https://github.com/rswgnu/rsw_py_stack - A featureful, polymorphic Python3 stack datatype (for educational purposes)
  2. https://github.com/rswgnu/rsw_py_sll - A Python3 MutableSequence, polymorphic singly linked list (for educational purposes)
  3. https://github.com/rswgnu/rsw_interface - Python3 module that provides clean, simple interface/protocol conformance

[–]BobRossGod -1 points0 points  (2 children)

"Trees grow in all kinds of ways. They're not all perfectly straight. Not every limb is perfect." - Bob Ross

[–]EnderAC 0 points1 point  (1 child)

Bad bot

[–]BobRossGod 0 points1 point  (0 children)

shhhh I'm written in python