"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > globalrev schrieb: > > if i want a list with all numbers between x and y is there a way to > > do this with an inbult function. > > > > i mean i can always construct a function to do this but is there > > soemthing like: > > > > nbrs = list(range(50,100, 2)) > > range *does* that. use xrange if all you want is to iterate.
Until Python 3.0, where 'range' returns an iterable. -- \ "It seems intuitively obvious to me, which means that it might | `\ be wrong." -- Chris Torek | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list