pydoc's output sorts the results (methods and their docstrings) based on the alphabetical order. This is good, but I want to stay on top of what is new. When I add a new method in my module, I add it as the first method, so every time I add a new method it becomes the first method in the file.
I want the pydoc output to display in the same order as the methods are in the file.
Is this possible?
Example:
Here is my module, pydoc_test.py:
#!/usr/bin/python
def test_my_code():
"""
Docstring for test_my_code()
:return:
"""
pass
def add_my_code():
"""
Docstring for add_my_code()
:return:
"""
pass
Here is the output of "pydoc pydoc_test":
Help on module pydoc_test:
NAME
pydoc_test
FILE
/Users/myname/Documents/scripts/python_learning/pydoc_test.py
FUNCTIONS
add_my_code()
Docstring for add_my_code()
:return:
test_my_code()
Docstring for test_my_code()
:return:
pydoc displays "add_my_code" first and then "test_my_code", but I want the same order as in the file.