return Source statement which contains the
given linenumber (counted from 0).
def getstatement(self, lineno):
origin: code.Source
where:
function source:
def getstatement(self, lineno):
""" return Source statement which contains the
given linenumber (counted from 0).
"""
start, end = self.getstatementrange(lineno)
return self[start:end]
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.0
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.1
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.2
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.getstatement.3
called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py
traceback code.Source.getstatement.4
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.5
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.6
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.7
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.8
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.getstatement.9
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.10
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.11
called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py
traceback code.Source.getstatement.12
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.13
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.14
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback code.Source.getstatement.15
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.16
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.17
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.18
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py
traceback code.Source.getstatement.19
called in /home/johnny/projects/merlinux/py/dist/py/code/frame.py