subprocess.CalledProcessError.stderr

stderr Stderr output of the child process if it was captured by run(). Otherwise, None.

subprocess.CalledProcessError.returncode

returncode Exit status of the child process. If the process exited due to a signal, this will be the negative signal number.

subprocess.CalledProcessError.output

output Output of the child process if it was captured by run() or check_output(). Otherwise, None.

subprocess.CalledProcessError.cmd

cmd Command that was used to spawn the child process.

subprocess.CalledProcessError

exception subprocess.CalledProcessError Subclass of SubprocessError, raised when a process run by check_call() or check_output() returns a non-zero exit status. returncode Exit status of the child process. If the process exited due to a signal, this will be the negative signal number. cmd Command that was used to spawn the child process. output Output of the child process if it was captured by run() or check_output(). Otherwise, None. stdout Alias for output, for symmetr

subprocess.call()

subprocess.call(args, *, stdin=None, stdout=None, stderr=None, shell=False, timeout=None) Run the command described by args. Wait for command to complete, then return the returncode attribute. This is equivalent to: run(...).returncode (except that the input and check parameters are not supported) The arguments shown above are merely the most common ones. The full function signature is largely the same as that of the Popen constructor - this function passes all supplied arguments other than

struct.unpack_from()

struct.unpack_from(fmt, buffer, offset=0) Unpack from buffer starting at position offset, according to the format string fmt. The result is a tuple even if it contains exactly one item. The buffer’s size in bytes, minus offset, must be at least the size required by the format, as reflected by calcsize().

struct.unpack()

struct.unpack(fmt, buffer) Unpack from the buffer buffer (presumably packed by pack(fmt, ...)) according to the format string fmt. The result is a tuple even if it contains exactly one item. The buffer’s size in bytes must match the size required by the format, as reflected by calcsize().

struct.Struct.unpack_from()

unpack_from(buffer, offset=0) Identical to the unpack_from() function, using the compiled format. The buffer’s size in bytes, minus offset, must be at least size.

struct.Struct.unpack()

unpack(buffer) Identical to the unpack() function, using the compiled format. The buffer’s size in bytes must equal size.