I believe range(i,num) is what you are looking for.
Am 29.04.2015 um 16:22 schrieb Sebastian Good <sebast...@palladiumconsulting.com>: > I find myself creating ranges of the form i:i+num-1. That is, the ith thing, > and num more. Whenever I see a +1 or -1 I worry about careless off by one > errors, so I wonder if there is a function or operator to capture this idiom, > or open and closed ranges in general?