James Pye <lists at 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
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