parameters: (self)
return_statement: return rv
docstring: Find the stack frame of the caller so that we can note the source
          file name, line number and function name.
docstring_summary: Find the stack frame of the caller so that we can note the source
          file name, line number and function name.
docstring_tokens: Find the stack frame of the caller so that we can note the source file name line number and function name .
function: def get_linenumber(self):
          """
          Find the stack frame of the caller so that we can note the source
          file name, line number and function name.
          """
          f = currentframe()
          # On some versions of IronPython, currentframe() returns None if
          # IronPython isn't run with -X:Frames.
          if f is not None:
              f = f.f_back
          rv = "(unknown file): 0"
          while hasattr(f, "f_code"):
              co = f.f_code
              filename = os.path.normcase(co.co_filename)
              if filename == self._srcfile:
                  f = f.f_back
                  continue
              sinfo = None
              rv = str(co.co_filename) + ":" + str(f.f_lineno)
              break
          return rv
function_tokens: def get_linenumber ( self ) : f = currentframe ( ) # On some versions of IronPython, currentframe() returns None if # IronPython isn't run with -X:Frames. if f is not None : f = f . f_back rv = "(unknown file): 0" while hasattr ( f , "f_code" ) : co = f . f_code filename = os . path . normcase ( co . co_filename ) if filename == self . _srcfile : f = f . f_back continue sinfo = None rv = str ( co . co_filename ) + ":" + str ( f . f_lineno ) break return rv