pkgutil.extend_path()

pkgutil.extend_path(path, name) Extend the search path for the modules which comprise a package. Intended use is to place the following code in a package’s __init__.py: from pkgutil import extend_path __path__ = extend_path(__path__, __name__) This will add to the package’s __path__ all subdirectories of directories on sys.path named after the package. This is useful if one wants to distribute different parts of a single logical package as multiple directories. It also looks for *.pkg files

binascii.unhexlify()

binascii.unhexlify(hexstr) Return the binary data represented by the hexadecimal string hexstr. This function is the inverse of b2a_hex(). hexstr must contain an even number of hexadecimal digits (which can be upper or lower case), otherwise an Error exception is raised.

itertools.count()

itertools.count(start=0, step=1) Make an iterator that returns evenly spaced values starting with number start. Often used as an argument to map() to generate consecutive data points. Also, used with zip() to add sequence numbers. Roughly equivalent to: def count(start=0, step=1): # count(10) --> 10 11 12 13 14 ... # count(2.5, 0.5) -> 2.5 3.0 3.5 ... n = start while True: yield n n += step When counting with floating point numbers, better accuracy can

inspect.getmodulename()

inspect.getmodulename(path) Return the name of the module named by the file path, without including the names of enclosing packages. The file extension is checked against all of the entries in importlib.machinery.all_suffixes(). If it matches, the final path component is returned with the extension removed. Otherwise, None is returned. Note that this function only returns a meaningful name for actual Python modules - paths that potentially refer to Python packages will still return None. Ch

ssl.OP_NO_TLSv1

ssl.OP_NO_TLSv1 Prevents a TLSv1 connection. This option is only applicable in conjunction with PROTOCOL_SSLv23. It prevents the peers from choosing TLSv1 as the protocol version. New in version 3.2.

xdrlib.Unpacker.unpack_fopaque()

Unpacker.unpack_fopaque(n) Unpacks and returns a fixed length opaque data stream, similarly to unpack_fstring().

ipaddress.IPv4Network.with_prefixlen

with_prefixlen

tkinter.tix.HList

class tkinter.tix.HList The HList widget can be used to display any data that have a hierarchical structure, for example, file system directory trees. The list entries are indented and connected by branch lines according to their places in the hierarchy.

all()

all(iterable) Return True if all elements of the iterable are true (or if the iterable is empty). Equivalent to: def all(iterable): for element in iterable: if not element: return False return True

email.headerregistry.ContentTransferEncoding.cte

cte Valid values are 7bit, 8bit, base64, and quoted-printable. See RFC 2045 for more information.