As has been stated by others, range is not a generator, but sequence type (like list) that makes it an iterable which is NOT the same as an iterator.
The differences between iterable, iterator and generator are subtle (at least for someone new to python).
An iterator provides a __next__ method and can be exhausted, thus raising StopIteration.
An iterable is a object that provides an iterator over its content. Whenever its __iter__ method is called it returns a NEW iterator object, thus you can (indirectly) iterate over it multiple times.
A generator is a function that returns an iterator, which of cause can be exhausted.
Also good to know is, that the for loop automatically queries the iterator of any iterable. Which is why you can write for x in iterable instead of for x in iter(iterable) which in turn is the preferred way to call for x in iterable.__iter__() .
All of that IS in the documentation, but IMHO somewhat difficult to find. The best starting point is probably the Glossary.
for i in aconstruct is generating a separate iterable each time...range()is an iterator? (Generators are a specialised form of iterators, it is iterators that raiseStopIteration).rangebeing instantiated, likea=range(9), is very much similar to how a generator is instantiated in order to get an iterator. My mistake.