inspect_fodder.py 866 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # line 1
  2. 'A module docstring.'
  3. import sys, inspect
  4. # line 5
  5. # line 7
  6. def spam(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):
  7. eggs(b + d, c + f)
  8. # line 11
  9. def eggs(x, y):
  10. "A docstring."
  11. global fr, st
  12. fr = inspect.currentframe()
  13. st = inspect.stack()
  14. p = x
  15. q = y // 0
  16. # line 20
  17. class StupidGit:
  18. """A longer,
  19. indented
  20. docstring."""
  21. # line 27
  22. def abuse(self, a, b, c):
  23. """Another
  24. \tdocstring
  25. containing
  26. \ttabs
  27. \t
  28. """
  29. self.argue(a, b, c)
  30. # line 40
  31. def argue(self, a, b, c):
  32. try:
  33. spam(a, b, c)
  34. except:
  35. self.ex = sys.exc_info()
  36. self.tr = inspect.trace()
  37. # line 48
  38. class MalodorousPervert(StupidGit):
  39. pass
  40. Tit = MalodorousPervert
  41. class ParrotDroppings:
  42. pass
  43. class FesteringGob(MalodorousPervert, ParrotDroppings):
  44. pass