parser.compilest()

parser.compilest(st, filename='') The Python byte compiler can be invoked on an ST object to produce code objects which can be used as part of a call to the built-in exec() or eval() functions. This function provides the interface to the compiler, passing the internal parse tree from st to the parser, using the source file name specified by the filename parameter. The default value supplied for filename indicates that the source was an ST object. Compiling an ST object may result in exceptio

base64.urlsafe_b64decode()

base64.urlsafe_b64decode(s) Decode bytes-like object or ASCII string s using the URL- and filesystem-safe alphabet, which substitutes - instead of + and _ instead of / in the standard Base64 alphabet, and return the decoded bytes.

parser.st2list()

parser.st2list(st, line_info=False, col_info=False) This function accepts an ST object from the caller in st and returns a Python list representing the equivalent parse tree. The resulting list representation can be used for inspection or the creation of a new parse tree in list form. This function does not fail so long as memory is available to build the list representation. If the parse tree will only be used for inspection, st2tuple() should be used instead to reduce memory consumption an

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

time.daylight

time.daylight Nonzero if a DST timezone is defined.

filecmp.dircmp.subdirs

subdirs A dictionary mapping names in common_dirs to dircmp objects.

OSError.strerror

strerror The corresponding error message, as provided by the operating system. It is formatted by the C functions perror() under POSIX, and FormatMessage() under Windows.

fileinput.hook_compressed()

fileinput.hook_compressed(filename, mode) Transparently opens files compressed with gzip and bzip2 (recognized by the extensions '.gz' and '.bz2') using the gzip and bz2 modules. If the filename extension is not '.gz' or '.bz2', the file is opened normally (ie, using open() without any decompression). Usage example: fi = fileinput.FileInput(openhook=fileinput.hook_compressed)

operator.ilshift()

operator.ilshift(a, b) operator.__ilshift__(a, b) a = ilshift(a, b) is equivalent to a <<= b.

importlib.abc.MetaPathFinder.invalidate_caches()

invalidate_caches() An optional method which, when called, should invalidate any internal cache used by the finder. Used by importlib.invalidate_caches() when invalidating the caches of all finders on sys.meta_path. Changed in version 3.4: Returns None when called instead of NotImplemented.