Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Interacting with a long-running child process in Python (thegreenplace.net)
11 points by xk3 on Aug 6, 2022 | hide | past | favorite | 1 comment


Also don't skip out on `os.spawnvpe`. Really simple to use:

    def cmdi(*cmd, **kwargs):
        retcode = os.spawnvpe(os.P_WAIT, cmd[0], cmd, os.environ)
        return subprocess.CompletedProcess(cmd, retcode)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: