| 1 |
|
| 2 |
'A module docstring.' |
| 3 |
|
| 4 |
import sys, inspect |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
def spam(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h): |
| 9 |
eggs(b + d, c + f) |
| 10 |
|
| 11 |
|
| 12 |
def 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 |
|
| 21 |
class StupidGit: |
| 22 |
"""A longer, |
| 23 |
|
| 24 |
indented |
| 25 |
|
| 26 |
docstring.""" |
| 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 |
|
| 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 |
|
| 48 |
|
| 49 |
class MalodorousPervert(StupidGit): |
| 50 |
pass |
| 51 |
|
| 52 |
Tit = MalodorousPervert |
| 53 |
|
| 54 |
class ParrotDroppings: |
| 55 |
pass |
| 56 |
|
| 57 |
class FesteringGob(MalodorousPervert, ParrotDroppings): |
| 58 |
pass |
| 59 |
|
| 60 |
currentframe = inspect.currentframe() |
| 61 |
try: |
| 62 |
raise Exception() |
| 63 |
except: |
| 64 |
tb = sys.exc_info()[2] |