Antoine Pitrou added the comment: +1 for runcall() and the context manager. ---------- nosy: +pitrou _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17130> _______________________________________