Jason Tackaberry wrote: > On Thu, 2008-08-07 at 20:28 +0200, Dirk Meyer wrote: >> On the downside you can never "return" a Signal from a coroutine. > > Yes, and I'm not sure I want to add more special cases to coroutine > return values. Did you object to Signal.inprogress()?
I'm not sure if I object. :) Next try: support classes with a special "magic" __async__ function. If hasattr(result, '__async__') this returns an InProgress or something else we can return. if hasattr(result, '__async__'): result = result.__async__() One special case we can re-use Dischi -- In some cultures what I do would be considered normal. ------------------------------------------------------------------------- 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