[Tutor] Off Topic: xrange, WAS: Re: the and command

Kent Johnson kent37 at tds.net
Fri Aug 24 19:38:23 CEST 2007


Dave Kuhlman wrote:
> I thought xrange() returned an iterator.  I was wrong.
> 
> Actually xrange() returns an xrange object which, according to the
> docs, is "an opaque sequence".

Interesting. So an xrange object is an iterable sequence, not an iterator.

Kent


More information about the Tutor mailing list