Hello, 2011/7/4 Aigars Mahinovs <aigarius at gmail.com> > 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 that. Currently to > accomplish such feat I need to separate the 'extra processing' bit > into a separate function and call that in a separate thread. A nice > convenience would be a function or statement that would allow to > return a value from the current function, but still keep running its > code (in a separate thread). Such approach could then be used in many > places where async processing is required, such as GUI programming, > XMLRPC, web applications, ... with less boilerplate and more obvious > code flow. > This kind of topic is not suitable to python-dev. Please ask this on the python-list mailing list, or eventually on python-ideas. (where someone will probably suggest you to use a nested function) Cheers, -- Amaury Forgeot d'Arc -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20110704/96af1a4d/attachment.html>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4