blob: aa93a334d83032275428519e84691bf9d70bdddb [file] [log] [blame]
Georg Brandl8632cc22008-05-18 16:32:48 +00001"""This is a test module for test_pydoc"""
2
3__author__ = "Benjamin Peterson"
4__credits__ = "Nobody"
5__version__ = "1.2.3.4"
6
7
8class A:
9 """Hello and goodbye"""
10 def __init__():
11 """Wow, I have no function!"""
12 pass
13
14class B(object):
15 NO_MEANING = "eggs"
16 pass
17
Benjamin Petersonc3e1e902014-06-07 16:44:00 -070018class C(object):
19 def say_no(self):
20 return "no"
21 def get_answer(self):
22 """ Return say_no() """
23 return self.say_no()
24 def is_it_true(self):
25 """ Return self.get_answer() """
26 return self.get_answer()
27
Georg Brandl8632cc22008-05-18 16:32:48 +000028def doc_func():
29 """
30 This function solves all of the world's problems:
31 hunger
32 lack of Python
33 war
34 """
35
36def nodoc_func():
37 pass