diff -r 2c33c4475e60 Doc/library/subprocess.rst --- a/Doc/library/subprocess.rst Thu Aug 09 08:20:20 2012 +0300 +++ b/Doc/library/subprocess.rst Thu Aug 09 14:03:22 2012 +0300 @@ -208,6 +208,54 @@ output. +.. exception:: SubprocessError + + Base class for all other exceptions from this module. + + .. versionadded:: 3.3 + + +.. exception:: TimeoutExpired + + Subclass of :exc:`SubprocessError`, raised when a timeout expires while waiting for a + child process. + + .. attribute:: cmd + + Command that was used to spawn the child process. + + .. attribute:: timeout + + Timeout in seconds. + + .. attribute:: output + + Output of the child process if this exception is raised by :func:`check_output`. + Otherwise, None. + + .. versionadded:: 3.3 + + +.. exception:: CalledProcessError + + Subclass of :exc:`SubprocessError`, raised when a process run by check_call() or + check_output() returns a non-zero exit status. + + .. attribute:: returncode + + Exit status of the child process. + + .. attribute:: cmd + + Command that was used to spawn the child process. + + .. attribute:: output + + Output of the child process if this exception is raised by :func:`check_output`. + Otherwise, None. + + + .. _frequently-used-arguments: Frequently Used Arguments