asyncio.AbstractEventLoopPolicy.set_event_loop()

set_event_loop(loop) Set the event loop for the current context to loop.

typing.Optional

class typing.Optional Optional type. Optional[X] is equivalent to Union[X, type(None)]. Note that this is not the same concept as an optional argument, which is one that has a default. An optional argument with a default needn’t use the Optional qualifier on its type annotation (although it is inferred if the default is None). A mandatory argument may still have an Optional type if an explicit value of None is allowed.

email.header.Header

class email.header.Header(s=None, charset=None, maxlinelen=None, header_name=None, continuation_ws=' ', errors='strict') Create a MIME-compliant header that can contain strings in different character sets. Optional s is the initial header value. If None (the default), the initial header value is not set. You can later append to the header with append() method calls. s may be an instance of bytes or str, but see the append() documentation for semantics. Optional charset serves two purposes: i

pstats.Stats.dump_stats()

dump_stats(filename) Save the data loaded into the Stats object to a file named filename. The file is created if it does not exist, and is overwritten if it already exists. This is equivalent to the method of the same name on the profile.Profile and cProfile.Profile classes.

xdrlib.Unpacker.unpack_string()

Unpacker.unpack_string() Unpacks and returns a variable length string. The length of the string is first unpacked as an unsigned integer, then the string data is unpacked with unpack_fstring().

decimal.Context.minus()

minus(x) Minus corresponds to the unary prefix minus operator in Python.

logging.handlers.QueueListener.start()

start() Starts the listener. This starts up a background thread to monitor the queue for LogRecords to process.

decimal.Context.next_minus()

next_minus(x) Returns the largest representable number smaller than x.

operator.__ge__()

operator.__ge__(a, b) operator.__gt__(a, b) Perform “rich comparisons” between a and b. Specifically, lt(a, b) is equivalent to a < b, le(a, b) is equivalent to a <= b, eq(a, b) is equivalent to a == b, ne(a, b) is equivalent to a != b, gt(a, b) is equivalent to a > b and ge(a, b) is equivalent to a >= b. Note that these functions can return any value, which may or may not be interpretable as a Boolean value. See Comparisons for more information about rich comparisons.

dbm.dumb.error

exception dbm.dumb.error Raised on dbm.dumb-specific errors, such as I/O errors. KeyError is raised for general mapping errors like specifying an incorrect key.