James Pye <li...@jwp.name> writes: > The identification of this issue came from an *experiment* attempting > to create a *single* "daemonized()" CM that would execute the with- > statement's block in a new child process and, of course, not execute > it in the parent. At first, I ran into the RuntimeError in the parent > process, and then after rewriting the CMs as classes, I realized the > futility. > > with daemonized(): > run_some_subprocess()
This use case is addressed by my up-coming PEP, currently in draft form but submitted to the PEP editor. A reference implementation is at <URL:http://pypi.python.org/pypi/python-daemon/>. I'd like to know whether this meets your needs; follow-ups privately to me or in ‘python-ideas’ as you think appropriate. -- \ “Holy tintinnabulation, Batman!” —Robin | `\ | _o__) | Ben Finney _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com