call site 2 for code.Source.getstatement
code/testing/test_excinfo.py - line 184
178
179
180
181
182
183
184
185
   def test_tbentry_reinterpret(): 
       try: 
           hello("hello") 
       except TypeError: 
           excinfo = py.code.ExceptionInfo() 
       tbentry = excinfo.traceback[-1]
->     msg = tbentry.reinterpret() 
       assert msg.startswith("TypeError: ('hello' + 5)") 
code/traceback2.py - line 38
33
34
35
36
37
38
39
40
41
42
43
   def reinterpret(self):
       """Reinterpret the failing statement and returns a detailed information
              about what operations are performed."""
       if self.exprinfo is None:
           from py.__.magic import exprinfo
->         source = str(self.statement).strip()
           x = exprinfo.interpret(source, self.frame, should_fail=True)
           if not isinstance(x, str):
               raise TypeError, "interpret returned non-string %r" % (x,)
           self.exprinfo = x 
       return self.exprinfo
code/traceback2.py - line 21
18
19
20
21
   def statement(self):
       """ return a py.code.Source object for the current statement """
       source = self.frame.code.fullsource
->     return source.getstatement(self.lineno)