/Lib/test/pydoc_mod.py

http://unladen-swallow.googlecode.com/ · Python · 27 lines · 14 code · 5 blank · 8 comment · 0 complexity · a62f9533ea94308bf7877b57d65e17bd MD5 · raw file

  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. def doc_func():
  14. """
  15. This function solves all of the world's problems:
  16. hunger
  17. lack of Python
  18. war
  19. """
  20. def nodoc_func():
  21. pass