Am Dienstag, 07. Oktober 2008 21:37:30 schrieb Jason Tackaberry:
> >  and in fact that __iter__ method could also be a coroutine (correct
> > me if I'm wrong),
>
> No, the __iter__ method couldn't itself be a coroutine.  __iter__ must
> return a callable that implements .next().  coroutines return InProgress
> objects.

OK, it would not be a kaa.coroutine, but it could be a simple generator 
function (somehow, I thought this was conceptually also a coroutine, but it 
would of course only communicate in one direction, i.e. no send()).

> Before we start iterating over anything, the (yield query(...))
> expression completes, which means that once we start to iterate over the
> query results, the DB is unlocked.

Yes, (I think) I see that query eventually returns Query.result, a simple 
python list.  So the bug must be somewhere else.  Anyhow, it sounded as if 
Dischi had a plan how to fix this.

> Your suggested text looks good to me.  I'd not object if you made that
> change to the wiki. :)

Did I mention that I dislike Wikis?  Even though I managed to recover my 
existing account data for this one, it does not allow me to edit the page 
(obviously "protected"?).

Ciao, /  /
     /--/
    /  / ANS

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to