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

Aaron Watters aaron at reportlab.com
Thu Dec 11 19:10:05 EST 2003


Duncan Booth <duncan at NOSPAMrcp.co.uk> wrote in message news:<Xns944E8E75C5995duncanrcpcouk at 127.0.0.1>...
> aaron at reportlab.com (Aaron Watters) wrote in
> news:9a6d7d9d.0312110538.568014ef at posting.google.com: 
> 
> > regarding the use of stackless in
> > http://xsdb.sourceforge.net
> > "Fredrik Lundh" <fredrik at pythonware.com> wrote in message
> > news:<mailman.56.1071124178.9307.python-list at python.org>... 
> >> Aaron Watters wrote:
> >> > 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.
> > 
> > Please tell me I'm missing something, but I don't think
> > this will really help. ...
> 
> The generator solution may not be appropriate for your task, but it isn't 
> entirely accurate to say that you can only go one level deep....
> 
> The rule to follow is simply: any function which wants to yield, or which 
> calls a function that wants to yield has to be a generator and has to be 
> called from a 'for' loop which itself yields....

Yes.  I see this would work.  But this would then have to be
pervasive throughout my code -- and even in client code that
uses the xsdb code directly (but not from a remote client).... 
yuck.  No thanks :(.  The acceptible options still are threads, 
stackless, or punt.

  -- Aaron Watters
===
How do zen masters walk through walls?
Doors.




More information about the Python-list mailing list