*Not documented*
def __getitem__(self, key):
origin: code.Source
where:
exceptions that might appear during execution:
function source:
def __getitem__(self, key):
if isinstance(key, int):
return self.lines[key]
else:
if key.step not in (None, 1):
raise IndexError("cannot slice a Source with a step")
return self.__getslice__(key.start, key.stop)
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.0
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback code.Source.__getitem__.1
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.2
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.3
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.4
called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py
traceback code.Source.__getitem__.5
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.6
called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_frame.py
traceback code.Source.__getitem__.7
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.8
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.9
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.10
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.11
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.12
called in /home/johnny/projects/merlinux/py/dist/py/code/testing/test_source.py
traceback code.Source.__getitem__.13
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.14
called in /home/johnny/projects/merlinux/py/dist/py/test/terminal/terminal.py
traceback code.Source.__getitem__.15
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.16
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.17
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.18
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py
traceback code.Source.__getitem__.19
called in /home/johnny/projects/merlinux/py/dist/py/code/traceback2.py