I have just been playing around with Pythons help function. While obvious for many, not all of us. I made a stupid example below just to give the idea. But if in your classes and functions you use doc strings, can help you to get an overview of what you are writing. Sometimes I write classes with so many methods, because I chop and change. This simple Python function can help put things into perspective.
I know it is not about Pythonista directly. But many learning Python and Pythonistia here.
# coding: utf-8
class SolveTheWorldsProblems(object):
'''
Description:
its not possible
Args:
the meaning of life
Returns:
-optimisim
Raises:
more questions that can be answered
'''
def __init__(self, meaning_of_life):
'''
the comment for the __init__ method
'''
self.meaning_of_life = meaning_of_life
def result(self):
'''
the comment for the result method
'''
return ('optimism')
if __name__ == '__main__':
stwp = SolveTheWorldsProblems(666)
print help(stwp)