[Python-ideas] @run_as_thread decorator

Giampaolo Rodolà g.rodola at gmail.com
Sat Mar 5 19:04:39 CET 2011


2011/3/5 geremy condra <debatem1 at gmail.com>:
> I've personally written this about five times. Having said that, what
> I'd really like would be a context manager that executed the contained
> block of code in a new thread or process, and I haven't gotten that to
> work the way I'd like so far.

I've been thingking about that as well but... would that even be possible?


--- Giampaolo
http://code.google.com/p/pyftpdlib/
http://code.google.com/p/psutil/



More information about the Python-ideas mailing list