zipfile.is_zipfile()

zipfile.is_zipfile(filename) Returns True if filename is a valid ZIP file based on its magic number, otherwise returns False. filename may be a file or file-like object too. Changed in version 3.1: Support for file and file-like objects.

zipfile.BadZipfile

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

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.

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

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()

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.

xmlrpc.server.SimpleXMLRPCServer.register_multicall_functions()

SimpleXMLRPCServer.register_multicall_functions() Registers the XML-RPC multicall function system.multicall.

xmlrpc.server.SimpleXMLRPCServer.register_introspection_functions()

SimpleXMLRPCServer.register_introspection_functions() Registers the XML-RPC introspection functions system.listMethods, system.methodHelp and system.methodSignature.

xmlrpc.server.SimpleXMLRPCServer.register_instance()

SimpleXMLRPCServer.register_instance(instance, allow_dotted_names=False) Register an object which is used to expose method names which have not been registered using register_function(). If instance contains a _dispatch() method, it is called with the requested method name and the parameters from the request. Its API is def _dispatch(self, method, params) (note that params does not represent a variable argument list). If it calls an underlying function to perform its task, that function is c

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.