Re: [Python-Dev] Threaded asynchronous return from functions

2011-07-04 Thread Amaury Forgeot d'Arc
Hello, 2011/7/4 Aigars Mahinovs > I have been doing some multithreaded work lately and have found that often what I find wanting to do is to call a function, have it check > it's arguments, possibly do some work and then return to the caller, > but still do some extra processing right after tha

[Python-Dev] Threaded asynchronous return from functions

2011-07-04 Thread Aigars Mahinovs
Short version: Could we get def funct( args ): if args == 'good': return 'good' async_return "I'll think about it" if args == '123': do_x() elif args == 'abc': do_y() else: do_z() as equivalent to def do_thinking( args ): if args == '123':