pydoc_mod.py 686 B

12345678910111213141516171819202122232425262728293031323334353637
  1. """This is a test module for test_pydoc"""
  2. __author__ = "Benjamin Peterson"
  3. __credits__ = "Nobody"
  4. __version__ = "1.2.3.4"
  5. class A:
  6. """Hello and goodbye"""
  7. def __init__():
  8. """Wow, I have no function!"""
  9. pass
  10. class B(object):
  11. NO_MEANING = "eggs"
  12. pass
  13. class C(object):
  14. def say_no(self):
  15. return "no"
  16. def get_answer(self):
  17. """ Return say_no() """
  18. return self.say_no()
  19. def is_it_true(self):
  20. """ Return self.get_answer() """
  21. return self.get_answer()
  22. def doc_func():
  23. """
  24. This function solves all of the world's problems:
  25. hunger
  26. lack of Python
  27. war
  28. """
  29. def nodoc_func():
  30. pass