creating generators from function

Timo Virkkala a at a.invalid
Wed Dec 8 09:23:21 EST 2004


Simon Wittber wrote:
> I guess this changes my question to: Can I convert a function
> containing an infinite loop, into a generator which will yield on each
> iteration?

Why don't you just use threads? It would probably be easier in the long run...

--
Timo Virkkala



More information about the Python-list mailing list