codecs.IncrementalEncoder

class codecs.IncrementalEncoder(errors='strict') Constructor for an IncrementalEncoder instance. All incremental encoders must provide this constructor interface. They are free to add additional keyword arguments, but only the ones defined here are used by the Python codec registry. The IncrementalEncoder may implement different error handling schemes by providing the errors keyword argument. See Error Handlers for possible values. The errors argument will be assigned to an attribute of the

zlib.Compress.copy()

Compress.copy() Returns a copy of the compression object. This can be used to efficiently compress a set of data that share a common initial prefix.

subprocess.TimeoutExpired

exception subprocess.TimeoutExpired Subclass of SubprocessError, raised when a timeout expires while waiting for a child process. cmd Command that was used to spawn the child process. timeout Timeout in seconds. output Output of the child process if it was captured by run() or check_output(). Otherwise, None. stdout Alias for output, for symmetry with stderr. stderr Stderr output of the child process if it was captured by run(). Otherwise, None. New in version

inspect.Signature.from_callable()

classmethod from_callable(obj, *, follow_wrapped=True) Return a Signature (or its subclass) object for a given callable obj. Pass follow_wrapped=False to get a signature of obj without unwrapping its __wrapped__ chain. This method simplifies subclassing of Signature: class MySignature(Signature): pass sig = MySignature.from_callable(min) assert isinstance(sig, MySignature) New in version 3.5.

selectors.SelectorKey.fileobj

fileobj File object registered.

subprocess.Popen.communicate()

Popen.communicate(input=None, timeout=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be data to be sent to the child process, or None, if no data should be sent to the child. The type of input must be bytes or, if universal_newlines was True, a string. communicate() returns a tuple (stdout_data, stderr_data). The data will be bytes or, if universal_newlines was

xmlrpc.server.SimpleXMLRPCServer.register_function()

SimpleXMLRPCServer.register_function(function, name=None) Register a function that can respond to XML-RPC requests. If name is given, it will be the method name associated with function, otherwise function.__name__ will be used. name can be either a normal or Unicode string, and may contain characters not legal in Python identifiers, including the period character.

wsgiref.util.setup_testing_defaults()

wsgiref.util.setup_testing_defaults(environ) Update environ with trivial defaults for testing purposes. This routine adds various parameters required for WSGI, including HTTP_HOST, SERVER_NAME, SERVER_PORT, REQUEST_METHOD, SCRIPT_NAME, PATH_INFO, and all of the PEP 3333-defined wsgi.* variables. It only supplies default values, and does not replace any existing settings for these variables. This routine is intended to make it easier for unit tests of WSGI servers and applications to set up d

mailbox.MMDFMessage

class mailbox.MMDFMessage(message=None) A message with MMDF-specific behaviors. Parameter message has the same meaning as with the Message constructor. As with message in an mbox mailbox, MMDF messages are stored with the sender’s address and the delivery date in an initial line beginning with “From ”. Likewise, flags that indicate the state of the message are typically stored in Status and X-Status headers. Conventional flags for MMDF messages are identical to those of mbox message and are

os.execl()

os.execl(path, arg0, arg1, ...) os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env) os.execv(path, args) os.execve(path, args, env) os.execvp(file, args) os.execvpe(file, args, env) These functions all execute a new program, replacing the current process; they do not return. On Unix, the new executable is loaded into the current process, and will have the same process id as the caller. Errors will be reported as OSError exceptions. The