generator/coroutine terminology
Marko Rauhamaa
marko at pacujo.net
Thu Mar 12 16:22:49 EDT 2015
Terry Reedy <tjreedy at udel.edu>:
> On 3/12/2015 9:35 AM, Rustom Mody wrote:
>> This is more a question about standard terminology/conventions than
>> about semantics - of course assuming I understand :-)
>>
>> Say I have a simple yielding function:
>>
>> def foo(x):
>> yield x+1
>> yield x+2
>
> This is a generator function
Which in the official language specification is an elaborate synonym of
a generator.
Marko
More information about the Python-list
mailing list