def getVisibleBookmarks(self, beginRow, endRow):
    '\n        Args:\n          beginRow (int): the index of the line number that you want the list of\n                          bookmarks to start from.\n          endRow (int): the index of the line number that you want the list of\n                        bookmarks to end at (exclusive).\n\n        Returns:\n          A list containing the bookmarks that are displayed on the screen. If\n          there are no bookmarks, returns an empty list.\n        '
    bookmarkList = self.host.textBuffer.bookmarks
    beginIndex = endIndex = 0
    if len(bookmarkList):
        needle = app.bookmark.Bookmark(beginRow, beginRow, {})
        beginIndex = bisect.bisect_left(bookmarkList, needle)
        if ((beginIndex > 0) and (bookmarkList[(beginIndex - 1)].end >= beginRow)):
            beginIndex -= 1
        needle.range = (endRow, endRow)
        endIndex = bisect.bisect_left(bookmarkList, needle)
    return bookmarkList[beginIndex:endIndex]
Args:
  beginRow (int): the index of the line number that you want the list of
                  bookmarks to start from.
  endRow (int): the index of the line number that you want the list of
                bookmarks to end at (exclusive).

Returns:
  A list containing the bookmarks that are displayed on the screen. If
  there are no bookmarks, returns an empty list.
def getVisibleBookmarks(self, beginRow, endRow):
    '\n        Args:\n          beginRow (int): the index of the line number that you want the list of\n                          bookmarks to start from.\n          endRow (int): the index of the line number that you want the list of\n                        bookmarks to end at (exclusive).\n\n        Returns:\n          A list containing the bookmarks that are displayed on the screen. If\n          there are no bookmarks, returns an empty list.\n        '
    bookmarkList = self.host.textBuffer.bookmarks
    beginIndex = endIndex = 0
    if len(bookmarkList):
        needle = app.bookmark.Bookmark(beginRow, beginRow, {})
        beginIndex = bisect.bisect_left(bookmarkList, needle)
        if ((beginIndex > 0) and (bookmarkList[(beginIndex - 1)].end >= beginRow)):
            beginIndex -= 1
        needle.range = (endRow, endRow)
        endIndex = bisect.bisect_left(bookmarkList, needle)
    return bookmarkList[beginIndex:endIndex]