LookupError

exception LookupError The base class for the exceptions that are raised when a key or index used on a mapping or sequence is invalid: IndexError, KeyError. This can be raised directly by codecs.lookup().

email.generator.DecodedGenerator

class email.generator.DecodedGenerator(outfp, mangle_from_=True, maxheaderlen=78, fmt=None) This class, derived from Generator walks through all the subparts of a message. If the subpart is of main type text, then it prints the decoded payload of the subpart. Optional _mangle_from_ and maxheaderlen are as with the Generator base class. If the subpart is not of main type text, optional fmt is a format string that is used instead of the message payload. fmt is expanded with the following keywo

collections.abc.ByteString

class collections.abc.ByteString ABCs for read-only and mutable sequences. Implementation note: Some of the mixin methods, such as __iter__(), __reversed__() and index(), make repeated calls to the underlying __getitem__() method. Consequently, if __getitem__() is implemented with constant access speed, the mixin methods will have linear performance; however, if the underlying method is linear (as it would be with a linked list), the mixins will have quadratic performance and will likely nee

bdb.Bdb.trace_dispatch()

trace_dispatch(frame, event, arg) This function is installed as the trace function of debugged frames. Its return value is the new trace function (in most cases, that is, itself). The default implementation decides how to dispatch a frame, depending on the type of event (passed as a string) that is about to be executed. event can be one of the following: "line": A new line of code is going to be executed. "call": A function is about to be called, or another code block entered. "return": A

email.errors.HeaderParseError

exception email.errors.HeaderParseError Raised under some error conditions when parsing the RFC 2822 headers of a message, this class is derived from MessageParseError. It can be raised from the Parser.parse or Parser.parsestr methods. Situations where it can be raised include finding an envelope header after the first RFC 2822 header of the message, finding a continuation line before the first RFC 2822 header is found, or finding a line in the headers which is neither a header or a continua

os.sched_setscheduler()

os.sched_setscheduler(pid, policy, param) Set the scheduling policy for the process with PID pid. A pid of 0 means the calling process. policy is one of the scheduling policy constants above. param is a sched_param instance.

xml.dom.InvalidStateErr

exception xml.dom.InvalidStateErr Raised when an attempt is made to use an object that is not defined or is no longer usable.

pkgutil.get_importer()

pkgutil.get_importer(path_item) Retrieve a PEP 302 importer for the given path_item. The returned importer is cached in sys.path_importer_cache if it was newly created by a path hook. The cache (or part of it) can be cleared manually if a rescan of sys.path_hooks is necessary. Changed in version 3.3: Updated to be based directly on importlib rather than relying on the package internal PEP 302 import emulation.

asynchat.async_chat.found_terminator()

async_chat.found_terminator() Called when the incoming data stream matches the termination condition set by set_terminator(). The default method, which must be overridden, raises a NotImplementedError exception. The buffered input data should be available via an instance attribute.

datetime.date.max

date.max The latest representable date, date(MAXYEAR, 12, 31).