'>>> sa = SilverCityAccessor(lexer,
...         #0         1           2         3
...         #01234567890 123456789 01234567890 12345
...         \'import sys\nif True:\nprint "hi"\n# bye\')
>>> sa.line_from_pos(0)
0
>>> sa.line_from_pos(9)
0
>>> sa.line_from_pos(10)
0
>>> sa.line_from_pos(11)
1
>>> sa.line_from_pos(22)
2
>>> sa.line_from_pos(34)
3
>>> sa.line_from_pos(35)
3'

def line_from_pos(self, byte_pos):

    return (bisect.bisect_left(self.__position_data, ((byte_pos + 1),)) - 1)
