blob: 711badad849211f6b390fb68c8d7c3d9acd157a4 [file] [log] [blame]
Johannes Gijsberscb9015d2004-12-12 16:20:22 +00001# line 1
2'A module docstring.'
3
4import sys, inspect
5# line 5
6
7# line 7
Guido van Rossum1bc535d2007-05-15 18:46:22 +00008def spam(a, b, c, d=3, e=4, f=5, *g, **h):
Johannes Gijsberscb9015d2004-12-12 16:20:22 +00009 eggs(b + d, c + f)
10
11# line 11
12def eggs(x, y):
13 "A docstring."
14 global fr, st
15 fr = inspect.currentframe()
16 st = inspect.stack()
17 p = x
18 q = y / 0
19
20# line 20
21class StupidGit:
22 """A longer,
23
24 indented
25
26 docstring."""
27# line 27
28
29 def abuse(self, a, b, c):
30 """Another
31
32\tdocstring
33
34 containing
35
36\ttabs
37\t
38 """
39 self.argue(a, b, c)
40# line 40
41 def argue(self, a, b, c):
42 try:
43 spam(a, b, c)
44 except:
45 self.ex = sys.exc_info()
46 self.tr = inspect.trace()
47
Serhiy Storchakaac4bdcc2015-10-29 08:15:50 +020048 @property
Serhiy Storchaka5cf2b722015-04-03 22:38:53 +030049 def contradiction(self):
50 'The automatic gainsaying.'
51 pass
52
Serhiy Storchakaac4bdcc2015-10-29 08:15:50 +020053# line 53
Johannes Gijsberscb9015d2004-12-12 16:20:22 +000054class MalodorousPervert(StupidGit):
Serhiy Storchaka5cf2b722015-04-03 22:38:53 +030055 def abuse(self, a, b, c):
56 pass
Serhiy Storchakaac4bdcc2015-10-29 08:15:50 +020057
58 @property
Serhiy Storchaka5cf2b722015-04-03 22:38:53 +030059 def contradiction(self):
60 pass
Johannes Gijsberscb9015d2004-12-12 16:20:22 +000061
Serhiy Storchaka362c1b52013-09-05 17:14:32 +030062Tit = MalodorousPervert
63
Johannes Gijsberscb9015d2004-12-12 16:20:22 +000064class ParrotDroppings:
65 pass
66
67class FesteringGob(MalodorousPervert, ParrotDroppings):
Serhiy Storchaka5cf2b722015-04-03 22:38:53 +030068 def abuse(self, a, b, c):
69 pass
Serhiy Storchakaac4bdcc2015-10-29 08:15:50 +020070
71 @property
Serhiy Storchaka5cf2b722015-04-03 22:38:53 +030072 def contradiction(self):
73 pass
Yury Selivanove4e811d2015-07-21 19:01:52 +030074
75async def lobbest(grenade):
76 pass