zipfile.BadZipfile

exception zipfile.BadZipfile Alias of BadZipFile, for compatibility with older Python versions. Deprecated since version 3.2.

zipfile.LargeZipFile

exception zipfile.LargeZipFile The error raised when a ZIP file would require ZIP64 functionality but that has not been enabled.

zipapp.create_archive()

zipapp.create_archive(source, target=None, interpreter=None, main=None) Create an application archive from source. The source can be any of the following: The name of a directory, or a pathlib.Path object referring to a directory, in which case a new application archive will be created from the content of that directory. The name of an existing application archive file, or a pathlib.Path object referring to such a file, in which case the file is copied to the target (modifying it to reflect

ZeroDivisionError

exception ZeroDivisionError Raised when the second argument of a division or modulo operation is zero. The associated value is a string indicating the type of the operands and the operation.

zipapp.get_interpreter()

zipapp.get_interpreter(archive) Return the interpreter specified in the #! line at the start of the archive. If there is no #! line, return None. The archive argument can be a filename or a file-like object open for reading in bytes mode. It is assumed to be at the start of the archive.

zip()

zip(*iterables) Make an iterator that aggregates elements from each of the iterables. Returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The iterator stops when the shortest input iterable is exhausted. With a single iterable argument, it returns an iterator of 1-tuples. With no arguments, it returns an empty iterator. Equivalent to: def zip(*iterables): # zip('ABCD', 'xy') --> Ax By sentinel = object()

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.

xmlrpc.server.SimpleXMLRPCRequestHandler.rpc_paths

SimpleXMLRPCRequestHandler.rpc_paths An attribute value that must be a tuple listing valid path portions of the URL for receiving XML-RPC requests. Requests posted to other paths will result in a 404 “no such page” HTTP error. If this tuple is empty, all paths will be considered valid. The default value is ('/', '/RPC2').

xmlrpc.server.SimpleXMLRPCServer

class xmlrpc.server.SimpleXMLRPCServer(addr, requestHandler=SimpleXMLRPCRequestHandler, logRequests=True, allow_none=False, encoding=None, bind_and_activate=True, use_builtin_types=False) Create a new server instance. This class provides methods for registration of functions that can be called by the XML-RPC protocol. The requestHandler parameter should be a factory for request handler instances; it defaults to SimpleXMLRPCRequestHandler. The addr and requestHandler parameters are passed to

xmlrpc.server.SimpleXMLRPCRequestHandler

class xmlrpc.server.SimpleXMLRPCRequestHandler Create a new request handler instance. This request handler supports POST requests and modifies logging so that the logRequests parameter to the SimpleXMLRPCServer constructor parameter is honored.