Fork of pty aiming for enhancement of the full stdlib Python API.
As encountered in practice,
pty.spawnrequiresKeyboardInterruptor else to break hanging fromselect.selectas inpty._copythen raiseOSErrortopty.spawnand to return from the function.Thus,
ptyngintroduced_is_zombieto check if the spawned child process is already dead (or, a 'zombie'), through whichpty.spawnwill automatically return from function call as normal/trivial scenerios expected.
Standalone releases are available on PyPI: http://pypi.python.org/pypi/ptyng/
The main development takes place in the Python standard library: see the Python developer's guide. In particular, new features should be submitted to the Python bug tracker.
Refer to the standard pty documentation.
ptyng.spawnnow supportstimeoutargument. If the timeout expires, the spawned child process will be killed and waited for. Anotherenvargument can be used to set the runtime environment variables for the spawned child process, default isos.environ.