On Tue, 2008-10-07 at 20:27 +0200, Hans Meine wrote: > other people, too. I wonder if kaa.base's async stuff is (or could be) used > other contexts (other python projects), too. Maybe one should announce it > e.g. on python-dev?
I use kaa.base all the time for personal stuff. kaa.base is certainly well suited for any kind of Python project. There's nothing media- or freevo- specific in there. In fact, at work I've held an intro to python workshop, and intend to do a second workshop where I go over more advanced concepts where I plan on using kaa.base to show the kinds of benefits you get from a framework, the power of decorators, and specifically coroutines. Before formally posting to a list like python-announce, the docs and examples need a lot of cleanup. :) Basically everything in the wiki belongs in either method or module docstrings. We still have a lot of epydoc formatting work to do. > And as I saw with your bugfix of beacon-search, kaa.main.run() otherwise > hangs > in a no-op mainloop. Not very nice, is it? I suppose if there are no running threads, no monitored file descriptors, no active timers, no child process, and no callbacks connected to any of the input signals or step signal, kaa.main.run() has no reason to run. :) > Maybe a nice fix could be to have a @mainloop decorator which wraps a > (generator) function in the appropriate if __name__ == "__main__"... > boilerplate code that also checks if main().finished? You wouldn't (and couldn't) have the "if __name__ == '__main__'" stuff in the decorator. I suppose you could have the simple .finished test. I'm not sure it's worth a separate decorator for that two-line idiom. Cheers, Jason. ------------------------------------------------------------------------- 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