shy stackless Re: ANNOUNCE: xsdb -- the eXtremely Simple Database goes alpha

Robin Becker robin at jessikat.fsnet.co.uk
Thu Dec 11 04:15:00 EST 2003


In article <7xwu93g759.fsf at ruckus.brouhaha.com>, Paul Rubin <http@?.cx>
writes
>"Fredrik Lundh" <fredrik at pythonware.com> writes:
>> 5) use an event loop and use a generator for the relevant code;
>> when you discover that you need to pause, yield to the framework.
>
>This kind of design really could benefit from Raymond Hettinger's PEP
>of a while back, proposing being able to pass parameters from the
>caller back to the yield statement of a yielded generator.
I was just about to ask if generators allow for a stream like mechanism,
but obviously if we're not allowed to change the generator state then it
seems quite hard.
-- 
Robin Becker




More information about the Python-list mailing list