e span and end with the span or after.
            # In other words we look at all intervals which start anywhere before or at the start(=end)
            # of the span.
            # if the start of what we found is &lt; start then end must be &gt; start, otherwise (if starts are same)
            # end must be &gt;= start
            for intvl in self._by_start.irange(maximum=(end, sys.maxsize, sys.maxsize)):
                if intvl[0] &lt; start and intvl[1] &gt; start:
                    yield intvl
 