Re: Passing yield as a function argument...

2017-05-23 Thread Peter Otten
Christopher Reimer wrote: > Greetings, > > I have two functions that I generalized to be nearly identical except > for one line. One function has a yield statement, the other function > appends to a queue. > > If I rewrite the one line to be a function passed in as an argument -- > i.e., func(da

Passing yield as a function argument...

2017-05-23 Thread Christopher Reimer
Greetings, I have two functions that I generalized to be nearly identical except for one line. One function has a yield statement, the other function appends to a queue. If I rewrite the one line to be a function passed in as an argument -- i.e., func(data) -- queue.append works fine. If I c