(view)
return map(lambda p: get_location_from_position(view, p), (region.begin(), region.end()))
Returns a tuple of Location objects representing the (start, end) of a region.
Returns a tuple of Location objects representing the (start, end) of a region.
Returns a tuple of Location objects representing the ( start end ) of a region .
def get_start_and_end_from_view(view):
    """Returns a tuple of Location objects representing the (start, end) of a region."""
    region = view.sel()[0]
    return map(lambda p: get_location_from_position(view, p), (region.begin(), region.end()))
def get_start_and_end_from_view ( view ) : region = view . sel ( ) [ 0 ] return map ( lambda p : get_location_from_position ( view , p ) , ( region . begin ( ) , region . end ( ) ) )