def _paginate(request, queryset):
 page = int(request.GET.get('page', 1))
 limit = int(request.GET.get('limit', 0))
 return __paginate(page, limit, queryset)

def _paginate ( request , queryset ) : page = int ( request . GET . get ( 'page' , 1 ) ) limit = int ( request . GET . get ( 'limit' , 0 ) ) return __paginate ( page , limit , queryset )
paginates the results from func by continuously passing in the returned marker if the results were truncated .