test.support.verbose

test.support.verbose True when verbose output is enabled. Should be checked when more detailed information is desired about a running test. verbose is set by test.regrtest.

mailbox.mboxMessage.set_from()

set_from(from_, time_=None) Set the “From ” line to from_, which should be specified without a leading “From ” or trailing newline. For convenience, time_ may be specified and will be formatted appropriately and appended to from_. If time_ is specified, it should be a time.struct_time instance, a tuple suitable for passing to time.strftime(), or True (to use time.gmtime()).

bdb.Bdb.break_anywhere()

break_anywhere(frame) This method checks if there is a breakpoint in the filename of the current frame.

asyncio.StreamReaderProtocol

class asyncio.StreamReaderProtocol(stream_reader, client_connected_cb=None, loop=None) Trivial helper class to adapt between Protocol and StreamReader. Subclass of Protocol. stream_reader is a StreamReader instance, client_connected_cb is an optional function called with (stream_reader, stream_writer) when a connection is made, loop is the event loop instance to use. (This is a helper class instead of making StreamReader itself a Protocol subclass, because the StreamReader has other potentia

asyncore.loop()

asyncore.loop([timeout[, use_poll[, map[, count]]]]) Enter a polling loop that terminates after count passes or all open channels have been closed. All arguments are optional. The count parameter defaults to None, resulting in the loop terminating only when all channels have been closed. The timeout argument sets the timeout parameter for the appropriate select() or poll() call, measured in seconds; the default is 30 seconds. The use_poll parameter, if true, indicates that poll() should be u

datetime.time.__str__()

time.__str__() For a time t, str(t) is equivalent to t.isoformat().

aifc.open()

aifc.open(file, mode=None) Open an AIFF or AIFF-C file and return an object instance with methods that are described below. The argument file is either a string naming a file or a file object. mode must be 'r' or 'rb' when the file must be opened for reading, or 'w' or 'wb' when the file must be opened for writing. If omitted, file.mode is used if it exists, otherwise 'rb' is used. When used for writing, the file object should be seekable, unless you know ahead of time how many samples you a

audioop.tomono()

audioop.tomono(fragment, width, lfactor, rfactor) Convert a stereo fragment to a mono fragment. The left channel is multiplied by lfactor and the right channel by rfactor before adding the two channels to give a mono signal.

asyncio.coroutine()

@asyncio.coroutine Decorator to mark generator-based coroutines. This enables the generator use yield from to call async def coroutines, and also enables the generator to be called by async def coroutines, for instance using an await expression. There is no need to decorate async def coroutines themselves. If the generator is not yielded from before it is destroyed, an error message is logged. See Detect coroutines never scheduled.

float.hex()

float.hex() Return a representation of a floating-point number as a hexadecimal string. For finite floating-point numbers, this representation will always include a leading 0x and a trailing p and exponent.