"Michele Simionato" <michele.simionato at gmail.com> wrote in message news:loom.20060601T145807-833 at post.gmane.org... > Yep, this is the crux. types.GeneratorType refers to generator objects, > which in an improper sense are "instances" of a "generator function". > I.e. > > def g(): yield 1 # this is a generator > > go = g() # this is a generator object That terminology does not work. For every other type, an x is an x object and vice versa. I think most of us call functions which return generators a generator function when the distinction needs to be made. A generator is a type in the conceptual class 'iterator'. Terry Jan Reedy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4