asyncio.AbstractEventLoop.getaddrinfo()

coroutine AbstractEventLoop.getaddrinfo(host, port, *, family=0, type=0, proto=0, flags=0) This method is a coroutine, similar to socket.getaddrinfo() function but non-blocking.

urllib.error.URLError

exception urllib.error.URLError The handlers raise this exception (or derived exceptions) when they run into a problem. It is a subclass of OSError. reason The reason for this error. It can be a message string or another exception instance. Changed in version 3.3: URLError has been made a subclass of OSError instead of IOError.

logging.FileHandler

class logging.FileHandler(filename, mode='a', encoding=None, delay=False) Returns a new instance of the FileHandler class. The specified file is opened and used as the stream for logging. If mode is not specified, 'a' is used. If encoding is not None, it is used to open the file with that encoding. If delay is true, then file opening is deferred until the first call to emit(). By default, the file grows indefinitely. close() Closes the file. emit(record) Outputs the record to the fi

filter()

filter(function, iterable) Construct an iterator from those elements of iterable for which function returns true. iterable may be either a sequence, a container which supports iteration, or an iterator. If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed. Note that filter(function, iterable) is equivalent to the generator expression (item for item in iterable if function(item)) if function is not None and (item for item in itera

multiprocessing.Process.name

name The process’s name. The name is a string used for identification purposes only. It has no semantics. Multiple processes may be given the same name. The initial name is set by the constructor. If no explicit name is provided to the constructor, a name of the form ‘Process-N1:N2:...:Nk‘ is constructed, where each Nk is the N-th child of its parent.

setattr()

setattr(object, name, value) This is the counterpart of getattr(). The arguments are an object, a string and an arbitrary value. The string may name an existing attribute or a new attribute. The function assigns the value to the attribute, provided the object allows it. For example, setattr(x, 'foobar', 123) is equivalent to x.foobar = 123.

inspect.signature()

inspect.signature(callable, *, follow_wrapped=True) Return a Signature object for the given callable: >>> from inspect import signature >>> def foo(a, *, b:int, **kwargs): ... pass >>> sig = signature(foo) >>> str(sig) '(a, *, b:int, **kwargs)' >>> str(sig.parameters['b']) 'b:int' >>> sig.parameters['b'].annotation <class 'int'> Accepts a wide range of python callables, from plain functions and classes to functools.partial(

sorted()

sorted(iterable[, key][, reverse]) Return a new sorted list from the items in iterable. Has two optional arguments which must be specified as keyword arguments. key specifies a function of one argument that is used to extract a comparison key from each list element: key=str.lower. The default value is None (compare the elements directly). reverse is a boolean value. If set to True, then the list elements are sorted as if each comparison were reversed. Use functools.cmp_to_key() to convert an

max()

max(iterable, *[, key, default]) max(arg1, arg2, *args[, key]) Return the largest item in an iterable or the largest of two or more arguments. If one positional argument is provided, it should be an iterable. The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned. There are two optional keyword-only arguments. The key argument specifies a one-argument ordering function like that used for list.sort().

msilib.Database.OpenView()

Database.OpenView(sql) Return a view object, by calling MSIDatabaseOpenView(). sql is the SQL statement to execute.