smtpd.SMTPChannel

class smtpd.SMTPChannel(server, conn, addr, data_size_limit=33554432, map=None, enable_SMTPUTF8=False, decode_data=True) Create a new SMTPChannel object which manages the communication between the server and a single SMTP client. conn and addr are as per the instance variables described below. data_size_limit specifies the maximum number of bytes that will be accepted in a DATA command. A value of None or 0 means no limit. enable_SMTPUTF8 determins whether the SMTPUTF8 extension (as defined

webbrowser.register()

webbrowser.register(name, constructor, instance=None) Register the browser type name. Once a browser type is registered, the get() function can return a controller for that browser type. If instance is not provided, or is None, constructor will be called without parameters to create an instance when needed. If instance is provided, constructor will never be called, and may be None. This entry point is only useful if you plan to either set the BROWSER variable or call get() with a nonempty ar

os.getcwdb()

os.getcwdb() Return a bytestring representing the current working directory.

unittest.registerResult()

unittest.registerResult(result) Register a TestResult object for control-c handling. Registering a result stores a weak reference to it, so it doesn’t prevent the result from being garbage collected. Registering a TestResult object has no side-effects if control-c handling is not enabled, so test frameworks can unconditionally register all results they create independently of whether or not handling is enabled.

mailbox.Mailbox.unlock()

unlock() Release the lock on the mailbox, if any.

random.triangular()

random.triangular(low, high, mode) Return a random floating point number N such that low <= N <= high and with the specified mode between those bounds. The low and high bounds default to zero and one. The mode argument defaults to the midpoint between the bounds, giving a symmetric distribution.

threading.Barrier.n_waiting

n_waiting The number of threads currently waiting in the barrier.

os.pread()

os.pread(fd, buffersize, offset) Read from a file descriptor, fd, at a position of offset. It will read up to buffersize number of bytes. The file offset remains unchanged. Availability: Unix. New in version 3.3.

logging.handlers.MemoryHandler.close()

close() Calls flush(), sets the target to None and clears the buffer.

mimetypes.read_mime_types()

mimetypes.read_mime_types(filename) Load the type map given in the file filename, if it exists. The type map is returned as a dictionary mapping filename extensions, including the leading dot ('.'), to strings of the form 'type/subtype'. If the file filename does not exist or cannot be read, None is returned.