collections.abc.Generator

class collections.abc.Generator ABC for generator classes that implement the protocol defined in PEP 342 that extends iterators with the send(), throw() and close() methods. See also the definition of generator. New in version 3.5.

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.

logging.handlers.MemoryHandler.close()

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

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.

threading.Barrier.n_waiting

n_waiting The number of threads currently waiting in the barrier.

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.

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.

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